home *** CD-ROM | disk | FTP | other *** search
Emacs Compiled Lisp | 1998-10-28 | 12.2 KB |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: Emacs Compiled Lisp
(other/emacsCompiledLisp).
This format is not currently supported by dexvert.
Confidence | Program | Detection | Match Type | Support
|
---|
1%
| dexvert
| Emacs Compiled Lisp (other/emacsCompiledLisp)
| magic
| Unsupported |
100%
| file
| Emacs/XEmacs v19 byte-compiled Lisp data
| default
| |
99%
| file
| data
| default
| |
100%
| TrID
| Emacs/XEmacs byte-compiled Lisp (generic)
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 3b 45 4c 43 13 00 00 00 | 0a 3b 3b 3b 20 63 6f 6d |;ELC....|.;;; com|
|00000010| 70 69 6c 65 64 20 62 79 | 20 65 72 69 6b 40 6e 61 |piled by| erik@na|
|00000020| 67 67 75 6d 2e 6e 6f 20 | 6f 6e 20 53 75 6e 20 4a |ggum.no |on Sun J|
|00000030| 61 6e 20 31 34 20 30 33 | 3a 35 31 3a 31 37 20 31 |an 14 03|:51:17 1|
|00000040| 39 39 36 0a 3b 3b 3b 20 | 66 72 6f 6d 20 66 69 6c |996.;;; |from fil|
|00000050| 65 20 2f 67 64 2f 67 6e | 75 2f 65 6d 61 63 73 2f |e /gd/gn|u/emacs/|
|00000060| 31 39 2e 30 2f 6c 69 73 | 70 2f 63 61 6c 2d 6d 61 |19.0/lis|p/cal-ma|
|00000070| 79 61 6e 2e 65 6c 0a 3b | 3b 3b 20 65 6d 61 63 73 |yan.el.;|;; emacs|
|00000080| 20 76 65 72 73 69 6f 6e | 20 31 39 2e 33 30 2e 37 | version| 19.30.7|
|00000090| 30 2e 36 2e 0a 3b 3b 3b | 20 62 79 74 65 63 6f 6d |0.6..;;;| bytecom|
|000000a0| 70 20 76 65 72 73 69 6f | 6e 20 46 53 46 20 32 2e |p versio|n FSF 2.|
|000000b0| 31 30 0a 3b 3b 3b 20 6f | 70 74 69 6d 69 7a 61 74 |10.;;; o|ptimizat|
|000000c0| 69 6f 6e 20 69 73 20 6f | 6e 2e 0a 3b 3b 3b 20 74 |ion is o|n..;;; t|
|000000d0| 68 69 73 20 66 69 6c 65 | 20 75 73 65 73 20 6f 70 |his file| uses op|
|000000e0| 63 6f 64 65 73 20 77 68 | 69 63 68 20 64 6f 20 6e |codes wh|ich do n|
|000000f0| 6f 74 20 65 78 69 73 74 | 20 69 6e 20 45 6d 61 63 |ot exist| in Emac|
|00000100| 73 20 31 38 2e 0a 0a 28 | 69 66 20 28 61 6e 64 20 |s 18...(|if (and |
|00000110| 28 62 6f 75 6e 64 70 20 | 27 65 6d 61 63 73 2d 76 |(boundp |'emacs-v|
|00000120| 65 72 73 69 6f 6e 29 0a | 09 20 28 6f 72 20 28 61 |ersion).|. (or (a|
|00000130| 6e 64 20 28 62 6f 75 6e | 64 70 20 27 65 70 6f 63 |nd (boun|dp 'epoc|
|00000140| 68 3a 3a 76 65 72 73 69 | 6f 6e 29 20 65 70 6f 63 |h::versi|on) epoc|
|00000150| 68 3a 3a 76 65 72 73 69 | 6f 6e 29 0a 09 20 20 20 |h::versi|on).. |
|00000160| 20 20 28 73 74 72 69 6e | 67 2d 6c 65 73 73 70 20 | (strin|g-lessp |
|00000170| 65 6d 61 63 73 2d 76 65 | 72 73 69 6f 6e 20 22 31 |emacs-ve|rsion "1|
|00000180| 39 2e 32 39 22 29 29 29 | 0a 20 20 20 20 28 65 72 |9.29")))|. (er|
|00000190| 72 6f 72 20 22 60 63 61 | 6c 2d 6d 61 79 61 6e 2e |ror "`ca|l-mayan.|
|000001a0| 65 6c 27 20 77 61 73 20 | 63 6f 6d 70 69 6c 65 64 |el' was |compiled|
|000001b0| 20 66 6f 72 20 45 6d 61 | 63 73 20 31 39 2e 32 39 | for Ema|cs 19.29|
|000001c0| 20 6f 72 20 6c 61 74 65 | 72 22 29 29 0a 0a 0a 28 | or late|r"))...(|
|000001d0| 72 65 71 75 69 72 65 20 | 28 71 75 6f 74 65 20 63 |require |(quote c|
|000001e0| 61 6c 65 6e 64 61 72 29 | 29 0a 23 40 33 33 32 20 |alendar)|).#@332 |
|000001f0| 4e 75 6d 62 65 72 20 6f | 66 20 64 61 79 73 20 6f |Number o|f days o|
|00000200| 66 20 74 68 65 20 4d 61 | 79 61 6e 20 63 61 6c 65 |f the Ma|yan cale|
|00000210| 6e 64 61 72 20 65 70 6f | 63 68 20 62 65 66 6f 72 |ndar epo|ch befor|
|00000220| 65 20 61 62 73 6f 6c 75 | 74 65 20 64 61 79 20 30 |e absolu|te day 0|
|00000230| 2e 0a 41 63 63 6f 72 64 | 69 6e 67 20 74 6f 20 74 |..Accord|ing to t|
|00000240| 68 65 20 47 6f 6f 64 6d | 61 6e 2d 4d 61 72 74 69 |he Goodm|an-Marti|
|00000250| 6e 65 7a 2d 54 68 6f 6d | 70 73 6f 6e 20 63 6f 72 |nez-Thom|pson cor|
|00000260| 72 65 6c 61 74 69 6f 6e | 2e 20 20 54 68 69 73 20 |relation|. This |
|00000270| 63 6f 72 72 65 6c 61 74 | 69 6f 6e 20 69 73 0a 6e |correlat|ion is.n|
|00000280| 6f 74 20 75 6e 69 76 65 | 72 73 61 6c 6c 79 20 61 |ot unive|rsally a|
|00000290| 63 63 65 70 74 65 64 2c | 20 61 73 20 69 74 20 73 |ccepted,| as it s|
|000002a0| 74 69 6c 6c 20 61 20 73 | 75 62 6a 65 63 74 20 6f |till a s|ubject o|
|000002b0| 66 20 61 73 74 72 6f 2d | 61 72 63 68 65 6f 6c 6f |f astro-|archeolo|
|000002c0| 67 69 63 61 6c 0a 72 65 | 73 65 61 72 63 68 2e 20 |gical.re|search. |
|000002d0| 20 55 73 69 6e 67 20 31 | 32 33 32 30 34 31 20 77 | Using 1|232041 w|
|000002e0| 69 6c 6c 20 67 69 76 65 | 20 79 6f 75 20 53 70 69 |ill give| you Spi|
|000002f0| 6e 64 65 6e 27 73 20 63 | 6f 72 72 65 6c 61 74 69 |nden's c|orrelati|
|00000300| 6f 6e 3b 20 75 73 69 6e | 67 0a 31 31 34 32 38 34 |on; usin|g.114284|
|00000310| 30 20 77 69 6c 6c 20 67 | 69 76 65 20 79 6f 75 20 |0 will g|ive you |
|00000320| 48 6f 63 68 6c 65 69 74 | 6e 65 72 27 73 20 63 6f |Hochleit|ner's co|
|00000330| 72 72 65 6c 61 74 69 6f | 6e 2e 1f 0a 28 64 65 66 |rrelatio|n...(def|
|00000340| 63 6f 6e 73 74 20 63 61 | 6c 65 6e 64 61 72 2d 6d |const ca|lendar-m|
|00000350| 61 79 61 6e 2d 64 61 79 | 73 2d 62 65 66 6f 72 65 |ayan-day|s-before|
|00000360| 2d 61 62 73 6f 6c 75 74 | 65 2d 7a 65 72 6f 20 31 |-absolut|e-zero 1|
|00000370| 31 33 37 31 34 30 20 28 | 23 24 20 2e 20 34 39 36 |137140 (|#$ . 496|
|00000380| 29 29 0a 23 40 33 31 20 | 4d 61 79 61 6e 20 68 61 |)).#@31 |Mayan ha|
|00000390| 61 62 20 64 61 74 65 20 | 61 74 20 74 68 65 20 65 |ab date |at the e|
|000003a0| 70 6f 63 68 2e 1f 0a 28 | 64 65 66 63 6f 6e 73 74 |poch...(|defconst|
|000003b0| 20 63 61 6c 65 6e 64 61 | 72 2d 6d 61 79 61 6e 2d | calenda|r-mayan-|
|000003c0| 68 61 61 62 2d 61 74 2d | 65 70 6f 63 68 20 28 71 |haab-at-|epoch (q|
|000003d0| 75 6f 74 65 20 28 38 20 | 2e 20 31 38 29 29 20 28 |uote (8 |. 18)) (|
|000003e0| 23 24 20 2e 20 39 30 34 | 29 29 0a 28 62 79 74 65 |#$ . 904|)).(byte|
|000003f0| 2d 63 6f 64 65 20 22 c0 | 11 c1 5c 6e 42 12 c1 87 |-code ".|..\nB...|
|00000400| 22 20 5b 5b 22 50 6f 70 | 22 20 22 55 6f 22 20 22 |" [["Pop|" "Uo" "|
|00000410| 5a 69 70 22 20 22 5a 6f | 74 7a 22 20 22 54 7a 65 |Zip" "Zo|tz" "Tze|
|00000420| 63 22 20 22 58 75 6c 22 | 20 22 59 61 78 6b 69 6e |c" "Xul"| "Yaxkin|
|00000430| 22 20 22 4d 6f 6c 22 20 | 22 43 68 65 6e 22 20 22 |" "Mol" |"Chen" "|
|00000440| 59 61 78 22 20 22 5a 61 | 63 22 20 22 43 65 68 22 |Yax" "Za|c" "Ceh"|
|00000450| 20 22 4d 61 63 22 20 22 | 4b 61 6e 6b 69 6e 22 20 | "Mac" "|Kankin" |
|00000460| 22 4d 75 61 6e 22 20 22 | 50 61 78 22 20 22 4b 61 |"Muan" "|Pax" "Ka|
|00000470| 79 61 62 22 20 22 43 75 | 6d 6b 75 22 5d 20 63 61 |yab" "Cu|mku"] ca|
|00000480| 6c 65 6e 64 61 72 2d 6d | 61 79 61 6e 2d 68 61 61 |lendar-m|ayan-haa|
|00000490| 62 2d 6d 6f 6e 74 68 2d | 6e 61 6d 65 2d 61 72 72 |b-month-|name-arr|
|000004a0| 61 79 20 63 75 72 72 65 | 6e 74 2d 6c 6f 61 64 2d |ay curre|nt-load-|
|000004b0| 6c 69 73 74 5d 20 32 29 | 0a 23 40 33 34 20 4d 61 |list] 2)|.#@34 Ma|
|000004c0| 79 61 6e 20 74 7a 6f 6c | 6b 69 6e 20 64 61 74 65 |yan tzol|kin date|
|000004d0| 20 61 74 20 74 68 65 20 | 65 70 6f 63 68 2e 1f 0a | at the |epoch...|
|000004e0| 28 64 65 66 63 6f 6e 73 | 74 20 63 61 6c 65 6e 64 |(defcons|t calend|
|000004f0| 61 72 2d 6d 61 79 61 6e | 2d 74 7a 6f 6c 6b 69 6e |ar-mayan|-tzolkin|
|00000500| 2d 61 74 2d 65 70 6f 63 | 68 20 28 71 75 6f 74 65 |-at-epoc|h (quote|
|00000510| 20 28 34 20 2e 20 32 30 | 29 29 20 28 23 24 20 2e | (4 . 20|)) (#$ .|
|00000520| 20 31 32 31 34 29 29 0a | 28 62 79 74 65 2d 63 6f | 1214)).|(byte-co|
|00000530| 64 65 20 22 c0 11 c1 5c | 6e 42 12 c1 87 22 20 5b |de "...\|nB..." [|
|00000540| 5b 22 49 6d 69 78 22 20 | 22 49 6b 22 20 22 41 6b |["Imix" |"Ik" "Ak|
|00000550| 62 61 6c 22 20 22 4b 61 | 6e 22 20 22 43 68 69 63 |bal" "Ka|n" "Chic|
|00000560| 63 68 61 6e 22 20 22 43 | 69 6d 69 22 20 22 4d 61 |chan" "C|imi" "Ma|
|00000570| 6e 69 6b 22 20 22 4c 61 | 6d 61 74 22 20 22 4d 75 |nik" "La|mat" "Mu|
|00000580| 6c 75 63 22 20 22 4f 63 | 22 20 22 43 68 75 65 6e |luc" "Oc|" "Chuen|
|00000590| 22 20 22 45 62 22 20 22 | 42 65 6e 22 20 22 49 78 |" "Eb" "|Ben" "Ix|
|000005a0| 22 20 22 4d 65 6e 22 20 | 22 43 69 62 22 20 22 43 |" "Men" |"Cib" "C|
|000005b0| 61 62 61 6e 22 20 22 45 | 74 7a 6e 61 62 22 20 22 |aban" "E|tznab" "|
|000005c0| 43 61 75 61 63 22 20 22 | 41 68 61 75 22 5d 20 63 |Cauac" "|Ahau"] c|
|000005d0| 61 6c 65 6e 64 61 72 2d | 6d 61 79 61 6e 2d 74 7a |alendar-|mayan-tz|
|000005e0| 6f 6c 6b 69 6e 2d 6e 61 | 6d 65 73 2d 61 72 72 61 |olkin-na|mes-arra|
|000005f0| 79 20 63 75 72 72 65 6e | 74 2d 6c 6f 61 64 2d 6c |y curren|t-load-l|
|00000600| 69 73 74 5d 20 32 29 0a | 23 40 36 36 20 43 6f 6d |ist] 2).|#@66 Com|
|00000610| 70 75 74 65 20 74 68 65 | 20 4d 61 79 61 6e 20 6c |pute the| Mayan l|
|00000620| 6f 6e 67 20 63 6f 75 6e | 74 20 63 6f 72 72 65 73 |ong coun|t corres|
|00000630| 70 6f 6e 64 69 6e 67 20 | 74 6f 20 74 68 65 20 61 |ponding |to the a|
|00000640| 62 73 6f 6c 75 74 65 20 | 44 41 54 45 2e 1f 0a 28 |bsolute |DATE...(|
|00000650| 64 65 66 61 6c 69 61 73 | 20 27 63 61 6c 65 6e 64 |defalias| 'calend|
|00000660| 61 72 2d 6d 61 79 61 6e | 2d 6c 6f 6e 67 2d 63 6f |ar-mayan|-long-co|
|00000670| 75 6e 74 2d 66 72 6f 6d | 2d 61 62 73 6f 6c 75 74 |unt-from|-absolut|
|00000680| 65 20 23 5b 28 64 61 74 | 65 29 20 22 08 09 5c 5c |e #[(dat|e) "..\\|
|00000690| 89 1a c3 a5 1c 5c 6e c3 | a6 89 1d c6 a5 1e 07 0d |.....\n.|........|
|000006a0| c6 a6 89 1d c8 a5 1e 09 | 0d c8 a6 89 1d ca a5 1e |........|........|
|000006b0| 0b 0d ca a6 1e 5c 66 5c | 66 0e 07 0e 09 0e 0b 0e |.....\f\|f.......|
|000006c0| 5c 66 af 05 2e 09 87 22 | 20 5b 64 61 74 65 20 63 |\f....."| [date c|
|000006d0| 61 6c 65 6e 64 61 72 2d | 6d 61 79 61 6e 2d 64 61 |alendar-|mayan-da|
|000006e0| 79 73 2d 62 65 66 6f 72 | 65 2d 61 62 73 6f 6c 75 |ys-befor|e-absolu|
|000006f0| 74 65 2d 7a 65 72 6f 20 | 6c 6f 6e 67 2d 63 6f 75 |te-zero |long-cou|
|00000700| 6e 74 20 31 34 34 30 30 | 30 20 62 61 6b 74 75 6e |nt 14400|0 baktun|
|00000710| 20 72 65 6d 61 69 6e 64 | 65 72 20 37 32 30 30 20 | remaind|er 7200 |
|00000720| 6b 61 74 75 6e 20 33 36 | 30 20 74 75 6e 20 32 30 |katun 36|0 tun 20|
|00000730| 20 75 69 6e 61 6c 20 6b | 69 6e 5d 20 36 20 28 23 | uinal k|in] 6 (#|
|00000740| 24 20 2e 20 31 35 34 39 | 29 5d 29 0a 23 40 35 37 |$ . 1549|)]).#@57|
|00000750| 20 43 6f 6e 76 65 72 74 | 20 4d 41 59 41 4e 2d 4c | Convert| MAYAN-L|
|00000760| 4f 4e 47 2d 43 4f 55 4e | 54 20 69 6e 74 6f 20 74 |ONG-COUN|T into t|
|00000770| 72 61 64 69 74 69 6f 6e | 61 6c 20 77 72 69 74 74 |radition|al writt|
|00000780| 65 6e 20 66 6f 72 6d 2e | 1f 0a 28 64 65 66 61 6c |en form.|..(defal|
|00000790| 69 61 73 20 27 63 61 6c | 65 6e 64 61 72 2d 6d 61 |ias 'cal|endar-ma|
|000007a0| 79 61 6e 2d 6c 6f 6e 67 | 2d 63 6f 75 6e 74 2d 74 |yan-long|-count-t|
|000007b0| 6f 2d 73 74 72 69 6e 67 | 20 23 5b 28 6d 61 79 61 |o-string| #[(maya|
|000007c0| 6e 2d 6c 6f 6e 67 2d 63 | 6f 75 6e 74 29 20 22 c0 |n-long-c|ount) ".|
|000007d0| c1 c2 0b 42 5c 22 87 22 | 20 5b 61 70 70 6c 79 20 |...B\"."| [apply |
|000007e0| 66 6f 72 6d 61 74 20 22 | 25 73 2e 25 73 2e 25 73 |format "|%s.%s.%s|
|000007f0| 2e 25 73 2e 25 73 22 20 | 6d 61 79 61 6e 2d 6c 6f |.%s.%s" |mayan-lo|
|00000800| 6e 67 2d 63 6f 75 6e 74 | 5d 20 34 20 28 23 24 20 |ng-count|] 4 (#$ |
|00000810| 2e 20 31 38 37 33 29 5d | 29 0a 23 40 37 30 20 47 |. 1873)]|).#@70 G|
|00000820| 69 76 65 6e 20 53 54 52 | 2c 20 61 20 73 74 72 69 |iven STR|, a stri|
|00000830| 6e 67 20 6f 66 20 66 6f | 72 6d 61 74 20 22 25 64 |ng of fo|rmat "%d|
|00000840| 2e 25 64 2e 25 64 2e 25 | 64 2e 25 64 22 2c 20 72 |.%d.%d.%|d.%d", r|
|00000850| 65 74 75 72 6e 20 6c 69 | 73 74 20 6f 66 20 6e 75 |eturn li|st of nu|
|00000860| 6d 73 2e 1f 0a 28 64 65 | 66 61 6c 69 61 73 20 27 |ms...(de|falias '|
|00000870| 63 61 6c 65 6e 64 61 72 | 2d 73 74 72 69 6e 67 2d |calendar|-string-|
|00000880| 74 6f 2d 6d 61 79 61 6e | 2d 6c 6f 6e 67 2d 63 6f |to-mayan|-long-co|
|00000890| 75 6e 74 20 23 5b 28 73 | 74 72 29 20 22 c0 09 47 |unt #[(s|tr) "..G|
|000008a0| c2 1b 1c 1d c6 c7 c8 8f | 88 c9 0d 21 2b 87 22 20 |........|...!+." |
|000008b0| 5b 6e 69 6c 20 73 74 72 | 20 30 20 63 63 20 63 20 |[nil str| 0 cc c |
|000008c0| 72 6c 63 20 63 6f 6e 64 | 69 74 69 6f 6e 20 28 62 |rlc cond|ition (b|
|000008d0| 79 74 65 2d 63 6f 64 65 | 20 22 08 09 57 83 29 00 |yte-code| "..W.).|
|000008e0| c2 c3 5c 66 08 23 1d c6 | 95 1e 07 c8 1e 09 ca 5c |..\f.#..|.......\|
|000008f0| 66 0d 0e 07 4f 21 89 16 | 09 0e 0b 42 16 0b 0e 07 |f...O!..|...B....|
|00000900| 10 2b 82 00 00 0e 0b 47 | cc 55 84 36 00 cd ce c8 |.+.....G|.U.6....|
|00000910| 5c 22 88 c8 87 22 20 5b | 63 63 20 63 20 73 74 72 |\"..." [|cc c str|
|00000920| 69 6e 67 2d 6d 61 74 63 | 68 20 22 5b 30 2d 39 5d |ing-matc|h "[0-9]|
|00000930| 2b 22 20 73 74 72 20 73 | 74 61 72 74 20 30 20 65 |+" str s|tart 0 e|
|00000940| 6e 64 20 6e 69 6c 20 64 | 61 74 75 6d 20 72 65 61 |nd nil d|atum rea|
|00000950| 64 20 72 6c 63 20 35 20 | 73 69 67 6e 61 6c 20 69 |d rlc 5 |signal i|
|00000960| 6e 76 61 6c 69 64 2d 72 | 65 61 64 2d 73 79 6e 74 |nvalid-r|ead-synt|
|00000970| 61 78 5d 20 35 29 20 28 | 28 69 6e 76 61 6c 69 64 |ax] 5) (|(invalid|
|00000980| 2d 72 65 61 64 2d 73 79 | 6e 74 61 78 29 29 20 72 |-read-sy|ntax)) r|
|00000990| 65 76 65 72 73 65 5d 20 | 33 20 28 23 24 20 2e 20 |everse] |3 (#$ . |
|000009a0| 32 30 37 39 29 5d 29 0a | 23 40 35 36 20 43 6f 6e |2079)]).|#@56 Con|
|000009b0| 76 65 72 74 20 61 62 73 | 6f 6c 75 74 65 20 44 41 |vert abs|olute DA|
|000009c0| 54 45 20 69 6e 74 6f 20 | 61 20 4d 61 79 61 6e 20 |TE into |a Mayan |
|000009d0| 68 61 61 62 20 64 61 74 | 65 20 28 61 20 70 61 69 |haab dat|e (a pai|
|000009e0| 72 29 2e 1f 0a 28 64 65 | 66 61 6c 69 61 73 20 27 |r)...(de|falias '|
|000009f0| 63 61 6c 65 6e 64 61 72 | 2d 6d 61 79 61 6e 2d 68 |calendar|-mayan-h|
|00000a00| 61 61 62 2d 66 72 6f 6d | 2d 61 62 73 6f 6c 75 74 |aab-from|-absolut|
|00000a10| 65 20 23 5b 28 64 61 74 | 65 29 20 22 08 09 5c 5c |e #[(dat|e) "..\\|
|00000a20| 89 1a 0b 40 5c 5c 0b 41 | 53 c4 5f 5c 5c c5 a6 89 |...@\\.A|S._\\...|
|00000a30| 1e 06 c4 a6 1e 07 0e 06 | c4 a5 54 1e 08 0e 07 0e |........|..T.....|
|00000a40| 08 2c 42 87 22 20 5b 64 | 61 74 65 20 63 61 6c 65 |.,B." [d|ate cale|
|00000a50| 6e 64 61 72 2d 6d 61 79 | 61 6e 2d 64 61 79 73 2d |ndar-may|an-days-|
|00000a60| 62 65 66 6f 72 65 2d 61 | 62 73 6f 6c 75 74 65 2d |before-a|bsolute-|
|00000a70| 7a 65 72 6f 20 6c 6f 6e | 67 2d 63 6f 75 6e 74 20 |zero lon|g-count |
|00000a80| 63 61 6c 65 6e 64 61 72 | 2d 6d 61 79 61 6e 2d 68 |calendar|-mayan-h|
|00000a90| 61 61 62 2d 61 74 2d 65 | 70 6f 63 68 20 32 30 20 |aab-at-e|poch 20 |
|00000aa0| 33 36 35 20 64 61 79 2d | 6f 66 2d 68 61 61 62 20 |365 day-|of-haab |
|00000ab0| 64 61 79 20 6d 6f 6e 74 | 68 5d 20 34 20 28 23 24 |day mont|h] 4 (#$|
|00000ac0| 20 2e 20 32 34 37 37 29 | 5d 29 0a 23 40 37 37 20 | . 2477)|]).#@77 |
|00000ad0| 4e 75 6d 62 65 72 20 6f | 66 20 64 61 79 73 20 66 |Number o|f days f|
|00000ae0| 72 6f 6d 20 4d 61 79 61 | 6e 20 68 61 61 62 20 44 |rom Maya|n haab D|
|00000af0| 41 54 45 31 20 74 6f 20 | 6e 65 78 74 20 6f 63 63 |ATE1 to |next occ|
|00000b00| 75 72 72 65 6e 63 65 20 | 6f 66 20 68 61 61 62 20 |urrence |of haab |
|00000b10| 64 61 74 65 20 44 41 54 | 45 32 2e 1f 0a 28 64 65 |date DAT|E2...(de|
|00000b20| 66 61 6c 69 61 73 20 27 | 63 61 6c 65 6e 64 61 72 |falias '|calendar|
|00000b30| 2d 6d 61 79 61 6e 2d 68 | 61 61 62 2d 64 69 66 66 |-mayan-h|aab-diff|
|00000b40| 65 72 65 6e 63 65 20 23 | 5b 28 64 61 74 65 31 20 |erence #|[(date1 |
|00000b50| 64 61 74 65 32 29 20 22 | c0 09 41 5c 6e 41 5a c3 |date2) "|..A\nAZ.|
|00000b60| 5f 09 40 5c 6e 40 5a 5c | 5c c4 5c 22 87 22 20 5b |_.@\n@Z\|\.\"." [|
|00000b70| 6d 6f 64 20 64 61 74 65 | 32 20 64 61 74 65 31 20 |mod date|2 date1 |
|00000b80| 32 30 20 33 36 35 5d 20 | 34 20 28 23 24 20 2e 20 |20 365] |4 (#$ . |
|00000b90| 32 37 36 38 29 5d 29 0a | 23 40 36 33 20 41 62 73 |2768)]).|#@63 Abs|
|00000ba0| 6f 6c 75 74 65 20 64 61 | 74 65 20 6f 66 20 6c 61 |olute da|te of la|
|00000bb0| 74 65 73 74 20 48 41 41 | 42 2d 44 41 54 45 20 6f |test HAA|B-DATE o|
|00000bc0| 6e 20 6f 72 20 62 65 66 | 6f 72 65 20 61 62 73 6f |n or bef|ore abso|
|00000bd0| 6c 75 74 65 20 44 41 54 | 45 2e 1f 0a 28 64 65 66 |lute DAT|E...(def|
|00000be0| 61 6c 69 61 73 20 27 63 | 61 6c 65 6e 64 61 72 2d |alias 'c|alendar-|
|00000bf0| 6d 61 79 61 6e 2d 68 61 | 61 62 2d 6f 6e 2d 6f 72 |mayan-ha|ab-on-or|
|00000c00| 2d 62 65 66 6f 72 65 20 | 23 5b 28 68 61 61 62 2d |-before |#[(haab-|
|00000c10| 64 61 74 65 20 64 61 74 | 65 29 20 22 08 89 c1 c2 |date dat|e) "....|
|00000c20| c3 21 5c 66 5c 22 5a c5 | a6 5a 87 22 20 5b 64 61 |.!\f\"Z.|.Z." [da|
|00000c30| 74 65 20 63 61 6c 65 6e | 64 61 72 2d 6d 61 79 61 |te calen|dar-maya|
|00000c40| 6e 2d 68 61 61 62 2d 64 | 69 66 66 65 72 65 6e 63 |n-haab-d|ifferenc|
|00000c50| 65 20 63 61 6c 65 6e 64 | 61 72 2d 6d 61 79 61 6e |e calend|ar-mayan|
|00000c60| 2d 68 61 61 62 2d 66 72 | 6f 6d 2d 61 62 73 6f 6c |-haab-fr|om-absol|
|00000c70| 75 74 65 20 30 20 68 61 | 61 62 2d 64 61 74 65 20 |ute 0 ha|ab-date |
|00000c80| 33 36 35 5d 20 35 20 28 | 23 24 20 2e 20 32 39 37 |365] 5 (|#$ . 297|
|00000c90| 33 29 5d 29 0a 23 40 38 | 33 20 4d 6f 76 65 20 63 |3)]).#@8|3 Move c|
|00000ca0| 75 72 73 6f 72 20 74 6f | 20 6e 65 78 74 20 69 6e |ursor to| next in|
|00000cb0| 73 74 61 6e 63 65 20 6f | 66 20 4d 61 79 61 6e 20 |stance o|f Mayan |
|00000cc0| 48 41 41 42 2d 44 41 54 | 45 2e 20 0a 45 63 68 6f |HAAB-DAT|E. .Echo|
|00000cd0| 20 4d 61 79 61 6e 20 64 | 61 74 65 20 69 66 20 4e | Mayan d|ate if N|
|00000ce0| 4f 45 43 48 4f 20 69 73 | 20 74 2e 1f 0a 28 64 65 |OECHO is| t...(de|
|00000cf0| 66 61 6c 69 61 73 20 27 | 63 61 6c 65 6e 64 61 72 |falias '|calendar|
|00000d00| 2d 6e 65 78 74 2d 68 61 | 61 62 2d 64 61 74 65 20 |-next-ha|ab-date |
|00000d10| 23 5b 28 68 61 61 62 2d | 64 61 74 65 20 26 6f 70 |#[(haab-|date &op|
|00000d20| 74 69 6f 6e 61 6c 20 6e | 6f 65 63 68 6f 29 20 22 |tional n|oecho) "|
|00000d30| c0 c1 c2 0b c4 20 89 1d | 89 1d 41 41 40 29 53 1e |..... ..|..AA@)S.|
|00000d40| 06 0d 89 1d 89 1d 40 29 | 1e 07 0d 89 1d 41 40 29 |......@)|.....A@)|
|00000d50| 1e 08 0d 89 1d 41 41 40 | 29 1e 09 0e 08 0e 07 53 |.....AA@|)......S|
|00000d60| ca 5f 5c 5c 1e 0b 0e 07 | cc 56 83 6e 00 0e 0b 0e |._\\....|.V.n....|
|00000d70| 07 cd 5f ce 5c 5c cf a5 | 5a 16 0b 0e 09 89 1e 09 |.._.\\..|Z.......|
|00000d80| cd a6 d0 55 85 65 00 0e | 09 d1 a6 d0 55 3f 86 65 |...U.e..|....U?.e|
|00000d90| 00 0e 09 d2 a6 d0 55 29 | 83 6e 00 0e 0b 54 16 0b |......U)|.n...T..|
|00000da0| 0e 0b 2d 0e 06 d3 5f 5c | 5c 0e 06 cd a5 5c 5c 0e |..-..._\|\....\\.|
|00000db0| 06 d1 a5 5b 5c 5c 0e 06 | d2 a5 5c 5c 2a d3 5c 5c |...[\\..|..\\*.\\|
|00000dc0| 5c 22 21 21 88 0e 14 86 | 94 00 d5 20 87 22 20 5b |\"!!....|... ." [|
|00000dd0| 63 61 6c 65 6e 64 61 72 | 2d 67 6f 74 6f 2d 64 61 |calendar|-goto-da|
|00000de0| 74 65 20 63 61 6c 65 6e | 64 61 72 2d 67 72 65 67 |te calen|dar-greg|
|00000df0| 6f 72 69 61 6e 2d 66 72 | 6f 6d 2d 61 62 73 6f 6c |orian-fr|om-absol|
|00000e00| 75 74 65 20 63 61 6c 65 | 6e 64 61 72 2d 6d 61 79 |ute cale|ndar-may|
|00000e10| 61 6e 2d 68 61 61 62 2d | 6f 6e 2d 6f 72 2d 62 65 |an-haab-|on-or-be|
|00000e20| 66 6f 72 65 20 68 61 61 | 62 2d 64 61 74 65 20 63 |fore haa|b-date c|
|00000e30| 61 6c 65 6e 64 61 72 2d | 63 75 72 73 6f 72 2d 74 |alendar-|cursor-t|
|00000e40| 6f 2d 64 61 74 65 20 64 | 61 74 65 20 70 72 69 6f |o-date d|ate prio|
|00000e50| 72 2d 79 65 61 72 73 20 | 6d 6f 6e 74 68 20 64 61 |r-years |month da|
|00000e60| 79 20 79 65 61 72 20 33 | 31 20 64 61 79 2d 6f 66 |y year 3|1 day-of|
|00000e70| 2d 79 65 61 72 20 32 20 | 34 20 32 33 20 31 30 20 |-year 2 |4 23 10 |
|00000e80| 30 20 31 30 30 20 34 30 | 30 20 33 36 35 20 6e 6f |0 100 40|0 365 no|
|00000e90| 65 63 68 6f 20 63 61 6c | 65 6e 64 61 72 2d 70 72 |echo cal|endar-pr|
|00000ea0| 69 6e 74 2d 6d 61 79 61 | 6e 2d 64 61 74 65 5d 20 |int-maya|n-date] |
|00000eb0| 31 30 20 28 23 24 20 2e | 20 33 32 32 36 29 20 28 |10 (#$ .| 3226) (|
|00000ec0| 6c 69 73 74 20 28 63 61 | 6c 65 6e 64 61 72 2d 72 |list (ca|lendar-r|
|00000ed0| 65 61 64 2d 6d 61 79 61 | 6e 2d 68 61 61 62 2d 64 |ead-maya|n-haab-d|
|00000ee0| 61 74 65 29 29 5d 29 0a | 23 40 38 37 20 4d 6f 76 |ate))]).|#@87 Mov|
|00000ef0| 65 20 63 75 72 73 6f 72 | 20 74 6f 20 70 72 65 76 |e cursor| to prev|
|00000f00| 69 6f 75 73 20 69 6e 73 | 74 61 6e 63 65 20 6f 66 |ious ins|tance of|
|00000f10| 20 4d 61 79 61 6e 20 48 | 41 41 42 2d 44 41 54 45 | Mayan H|AAB-DATE|
|00000f20| 2e 20 0a 45 63 68 6f 20 | 4d 61 79 61 6e 20 64 61 |. .Echo |Mayan da|
|00000f30| 74 65 20 69 66 20 4e 4f | 45 43 48 4f 20 69 73 20 |te if NO|ECHO is |
|00000f40| 74 2e 1f 0a 28 64 65 66 | 61 6c 69 61 73 20 27 63 |t...(def|alias 'c|
|00000f50| 61 6c 65 6e 64 61 72 2d | 70 72 65 76 69 6f 75 73 |alendar-|previous|
|00000f60| 2d 68 61 61 62 2d 64 61 | 74 65 20 23 5b 28 68 61 |-haab-da|te #[(ha|
|00000f70| 61 62 2d 64 61 74 65 20 | 26 6f 70 74 69 6f 6e 61 |ab-date |&optiona|
|00000f80| 6c 20 6e 6f 65 63 68 6f | 29 20 22 c0 c1 c2 0b c4 |l noecho|) ".....|
|00000f90| 20 89 1d 89 1d 41 41 40 | 29 53 1e 06 0d 89 1d 89 | ....AA@|)S......|
|00000fa0| 1d 40 29 1e 07 0d 89 1d | 41 40 29 1e 08 0d 89 1d |.@).....|A@).....|
|00000fb0| 41 41 40 29 1e 09 0e 08 | 0e 07 53 ca 5f 5c 5c 1e |AA@)....|..S._\\.|
|00000fc0| 0b 0e 07 cc 56 83 6e 00 | 0e 0b 0e 07 cd 5f ce 5c |....V.n.|....._.\|
|00000fd0| 5c cf a5 5a 16 0b 0e 09 | 89 1e 09 cd a6 d0 55 85 |\..Z....|......U.|
|00000fe0| 65 00 0e 09 d1 a6 d0 55 | 3f 86 65 00 0e 09 d2 a6 |e......U|?.e.....|
|00000ff0| d0 55 29 83 6e 00 0e 0b | 54 16 0b 0e 0b 2d 0e 06 |.U).n...|T....-..|
|00001000| d3 5f 5c 5c 0e 06 cd a5 | 5c 5c 0e 06 d1 a5 5b 5c |._\\....|\\....[\|
|00001010| 5c 0e 06 d2 a5 5c 5c 2a | 53 5c 22 21 21 88 0e 14 |\....\\*|S\"!!...|
|00001020| 86 93 00 d5 20 87 22 20 | 5b 63 61 6c 65 6e 64 61 |.... ." |[calenda|
|00001030| 72 2d 67 6f 74 6f 2d 64 | 61 74 65 20 63 61 6c 65 |r-goto-d|ate cale|
|00001040| 6e 64 61 72 2d 67 72 65 | 67 6f 72 69 61 6e 2d 66 |ndar-gre|gorian-f|
|00001050| 72 6f 6d 2d 61 62 73 6f | 6c 75 74 65 20 63 61 6c |rom-abso|lute cal|
|00001060| 65 6e 64 61 72 2d 6d 61 | 79 61 6e 2d 68 61 61 62 |endar-ma|yan-haab|
|00001070| 2d 6f 6e 2d 6f 72 2d 62 | 65 66 6f 72 65 20 68 61 |-on-or-b|efore ha|
|00001080| 61 62 2d 64 61 74 65 20 | 63 61 6c 65 6e 64 61 72 |ab-date |calendar|
|00001090| 2d 63 75 72 73 6f 72 2d | 74 6f 2d 64 61 74 65 20 |-cursor-|to-date |
|000010a0| 64 61 74 65 20 70 72 69 | 6f 72 2d 79 65 61 72 73 |date pri|or-years|
|000010b0| 20 6d 6f 6e 74 68 20 64 | 61 79 20 79 65 61 72 20 | month d|ay year |
|000010c0| 33 31 20 64 61 79 2d 6f | 66 2d 79 65 61 72 20 32 |31 day-o|f-year 2|
|000010d0| 20 34 20 32 33 20 31 30 | 20 30 20 31 30 30 20 34 | 4 23 10| 0 100 4|
|000010e0| 30 30 20 33 36 35 20 6e | 6f 65 63 68 6f 20 63 61 |00 365 n|oecho ca|
|000010f0| 6c 65 6e 64 61 72 2d 70 | 72 69 6e 74 2d 6d 61 79 |lendar-p|rint-may|
|00001100| 61 6e 2d 64 61 74 65 5d | 20 31 30 20 28 23 24 20 |an-date]| 10 (#$ |
|00001110| 2e 20 33 38 32 31 29 20 | 28 6c 69 73 74 20 28 63 |. 3821) |(list (c|
|00001120| 61 6c 65 6e 64 61 72 2d | 72 65 61 64 2d 6d 61 79 |alendar-|read-may|
|00001130| 61 6e 2d 68 61 61 62 2d | 64 61 74 65 29 29 5d 29 |an-haab-|date))])|
|00001140| 0a 23 40 36 39 20 43 6f | 6e 76 65 72 74 20 4d 61 |.#@69 Co|nvert Ma|
|00001150| 79 61 6e 20 68 61 61 62 | 20 64 61 74 65 20 28 61 |yan haab| date (a|
|00001160| 20 70 61 69 72 29 20 69 | 6e 74 6f 20 69 74 73 20 | pair) i|nto its |
|00001170| 74 72 61 64 69 74 69 6f | 6e 61 6c 20 77 72 69 74 |traditio|nal writ|
|00001180| 74 65 6e 20 66 6f 72 6d | 2e 1f 0a 28 64 65 66 61 |ten form|...(defa|
|00001190| 6c 69 61 73 20 27 63 61 | 6c 65 6e 64 61 72 2d 6d |lias 'ca|lendar-m|
|000011a0| 61 79 61 6e 2d 68 61 61 | 62 2d 74 6f 2d 73 74 72 |ayan-haa|b-to-str|
|000011b0| 69 6e 67 20 23 5b 28 68 | 61 61 62 29 20 22 08 41 |ing #[(h|aab) ".A|
|000011c0| 08 40 19 89 1a c3 55 83 | 13 00 c4 c5 09 5c 22 82 |.@....U.|.....\".|
|000011d0| 1c 00 c4 c6 09 0e 07 5c | 6e 53 48 23 2a 87 22 20 |.......\|nSH#*." |
|000011e0| 5b 68 61 61 62 20 64 61 | 79 20 6d 6f 6e 74 68 20 |[haab da|y month |
|000011f0| 31 39 20 66 6f 72 6d 61 | 74 20 22 25 64 20 55 61 |19 forma|t "%d Ua|
|00001200| 79 65 62 22 20 22 25 64 | 20 25 73 22 20 63 61 6c |yeb" "%d| %s" cal|
|00001210| 65 6e 64 61 72 2d 6d 61 | 79 61 6e 2d 68 61 61 62 |endar-ma|yan-haab|
|00001220| 2d 6d 6f 6e 74 68 2d 6e | 61 6d 65 2d 61 72 72 61 |-month-n|ame-arra|
|00001230| 79 5d 20 36 20 28 23 24 | 20 2e 20 34 34 32 32 29 |y] 6 (#$| . 4422)|
|00001240| 5d 29 0a 23 40 35 39 20 | 43 6f 6e 76 65 72 74 20 |]).#@59 |Convert |
|00001250| 61 62 73 6f 6c 75 74 65 | 20 44 41 54 45 20 69 6e |absolute| DATE in|
|00001260| 74 6f 20 61 20 4d 61 79 | 61 6e 20 74 7a 6f 6c 6b |to a May|an tzolk|
|00001270| 69 6e 20 64 61 74 65 20 | 28 61 20 70 61 69 72 29 |in date |(a pair)|
|00001280| 2e 1f 0a 28 64 65 66 61 | 6c 69 61 73 20 27 63 61 |...(defa|lias 'ca|
|00001290| 6c 65 6e 64 61 72 2d 6d | 61 79 61 6e 2d 74 7a 6f |lendar-m|ayan-tzo|
|000012a0| 6c 6b 69 6e 2d 66 72 6f | 6d 2d 61 62 73 6f 6c 75 |lkin-fro|m-absolu|
|000012b0| 74 65 20 23 5b 28 64 61 | 74 65 29 20 22 08 09 5c |te #[(da|te) "..\|
|000012c0| 5c 1a c3 5c 6e 5c 66 40 | 5c 5c c5 5c 22 1e 06 c3 |\..\n\f@|\\.\"...|
|000012d0| 5c 6e 5c 66 41 5c 5c c7 | 5c 22 1e 08 0e 06 0e 08 |\n\fA\\.|\"......|
|000012e0| 2b 42 87 22 20 5b 64 61 | 74 65 20 63 61 6c 65 6e |+B." [da|te calen|
|000012f0| 64 61 72 2d 6d 61 79 61 | 6e 2d 64 61 79 73 2d 62 |dar-maya|n-days-b|
|00001300| 65 66 6f 72 65 2d 61 62 | 73 6f 6c 75 74 65 2d 7a |efore-ab|solute-z|
|00001310| 65 72 6f 20 6c 6f 6e 67 | 2d 63 6f 75 6e 74 20 63 |ero long|-count c|
|00001320| 61 6c 65 6e 64 61 72 2d | 6d 6f 64 20 63 61 6c 65 |alendar-|mod cale|
|00001330| 6e 64 61 72 2d 6d 61 79 | 61 6e 2d 74 7a 6f 6c 6b |ndar-may|an-tzolk|
|00001340| 69 6e 2d 61 74 2d 65 70 | 6f 63 68 20 31 33 20 64 |in-at-ep|och 13 d|
|00001350| 61 79 20 32 30 20 6e 61 | 6d 65 5d 20 33 20 28 23 |ay 20 na|me] 3 (#|
|00001360| 24 20 2e 20 34 36 38 30 | 29 5d 29 0a 23 40 37 38 |$ . 4680|)]).#@78|
|00001370| 20 4e 75 6d 62 65 72 20 | 6f 66 20 64 61 79 73 20 | Number |of days |
|00001380| 66 72 6f 6d 20 4d 61 79 | 61 6e 20 74 7a 6f 6c 6b |from May|an tzolk|
|00001390| 69 6e 20 44 41 54 45 31 | 20 74 6f 20 6e 65 78 74 |in DATE1| to next|
|000013a0| 20 6f 63 63 75 72 72 65 | 6e 63 65 20 6f 66 20 74 | occurre|nce of t|
|000013b0| 7a 6f 6c 6b 69 6e 20 44 | 41 54 45 32 2e 1f 0a 28 |zolkin D|ATE2...(|
|000013c0| 64 65 66 61 6c 69 61 73 | 20 27 63 61 6c 65 6e 64 |defalias| 'calend|
|000013d0| 61 72 2d 6d 61 79 61 6e | 2d 74 7a 6f 6c 6b 69 6e |ar-mayan|-tzolkin|
|000013e0| 2d 64 69 66 66 65 72 65 | 6e 63 65 20 23 5b 28 64 |-differe|nce #[(d|
|000013f0| 61 74 65 31 20 64 61 74 | 65 32 29 20 22 08 40 09 |ate1 dat|e2) ".@.|
|00001400| 40 5a 08 41 09 41 5a 1a | 1b c4 0b c4 0b 5c 6e 5a |@Z.A.AZ.|.....\nZ|
|00001410| c5 5f c6 5c 22 c7 5f 5c | 5c c8 5c 22 2a 87 22 20 |._.\"._\|\.\"*." |
|00001420| 5b 64 61 74 65 32 20 64 | 61 74 65 31 20 6e 61 6d |[date2 d|ate1 nam|
|00001430| 65 2d 64 69 66 66 65 72 | 65 6e 63 65 20 6e 75 6d |e-differ|ence num|
|00001440| 62 65 72 2d 64 69 66 66 | 65 72 65 6e 63 65 20 6d |ber-diff|erence m|
|00001450| 6f 64 20 33 20 32 30 20 | 31 33 20 32 36 30 5d 20 |od 3 20 |13 260] |
|00001460| 35 20 28 23 24 20 2e 20 | 34 39 37 37 29 5d 29 0a |5 (#$ . |4977)]).|
|00001470| 23 40 36 36 20 41 62 73 | 6f 6c 75 74 65 20 64 61 |#@66 Abs|olute da|
|00001480| 74 65 20 6f 66 20 6c 61 | 74 65 73 74 20 54 5a 4f |te of la|test TZO|
|00001490| 4c 4b 49 4e 2d 44 41 54 | 45 20 6f 6e 20 6f 72 20 |LKIN-DAT|E on or |
|000014a0| 62 65 66 6f 72 65 20 61 | 62 73 6f 6c 75 74 65 20 |before a|bsolute |
|000014b0| 44 41 54 45 2e 1f 0a 28 | 64 65 66 61 6c 69 61 73 |DATE...(|defalias|
|000014c0| 20 27 63 61 6c 65 6e 64 | 61 72 2d 6d 61 79 61 6e | 'calend|ar-mayan|
|000014d0| 2d 74 7a 6f 6c 6b 69 6e | 2d 6f 6e 2d 6f 72 2d 62 |-tzolkin|-on-or-b|
|000014e0| 65 66 6f 72 65 20 23 5b | 28 74 7a 6f 6c 6b 69 6e |efore #[|(tzolkin|
|000014f0| 2d 64 61 74 65 20 64 61 | 74 65 29 20 22 08 89 c1 |-date da|te) "...|
|00001500| c2 c3 21 5c 66 5c 22 5a | c5 a6 5a 87 22 20 5b 64 |..!\f\"Z|..Z." [d|
|00001510| 61 74 65 20 63 61 6c 65 | 6e 64 61 72 2d 6d 61 79 |ate cale|ndar-may|
|00001520| 61 6e 2d 74 7a 6f 6c 6b | 69 6e 2d 64 69 66 66 65 |an-tzolk|in-diffe|
|00001530| 72 65 6e 63 65 20 63 61 | 6c 65 6e 64 61 72 2d 6d |rence ca|lendar-m|
|00001540| 61 79 61 6e 2d 74 7a 6f | 6c 6b 69 6e 2d 66 72 6f |ayan-tzo|lkin-fro|
|00001550| 6d 2d 61 62 73 6f 6c 75 | 74 65 20 30 20 74 7a 6f |m-absolu|te 0 tzo|
|00001560| 6c 6b 69 6e 2d 64 61 74 | 65 20 32 36 30 5d 20 35 |lkin-dat|e 260] 5|
|00001570| 20 28 23 24 20 2e 20 35 | 32 33 37 29 5d 29 0a 23 | (#$ . 5|237)]).#|
|00001580| 40 38 36 20 4d 6f 76 65 | 20 63 75 72 73 6f 72 20 |@86 Move| cursor |
|00001590| 74 6f 20 6e 65 78 74 20 | 69 6e 73 74 61 6e 63 65 |to next |instance|
|000015a0| 20 6f 66 20 4d 61 79 61 | 6e 20 54 5a 4f 4c 4b 49 | of Maya|n TZOLKI|
|000015b0| 4e 2d 44 41 54 45 2e 20 | 0a 45 63 68 6f 20 4d 61 |N-DATE. |.Echo Ma|
|000015c0| 79 61 6e 20 64 61 74 65 | 20 69 66 20 4e 4f 45 43 |yan date| if NOEC|
|000015d0| 48 4f 20 69 73 20 74 2e | 1f 0a 28 64 65 66 61 6c |HO is t.|..(defal|
|000015e0| 69 61 73 20 27 63 61 6c | 65 6e 64 61 72 2d 6e 65 |ias 'cal|endar-ne|
|000015f0| 78 74 2d 74 7a 6f 6c 6b | 69 6e 2d 64 61 74 65 20 |xt-tzolk|in-date |
|00001600| 23 5b 28 74 7a 6f 6c 6b | 69 6e 2d 64 61 74 65 20 |#[(tzolk|in-date |
|00001610| 26 6f 70 74 69 6f 6e 61 | 6c 20 6e 6f 65 63 68 6f |&optiona|l noecho|
|00001620| 29 20 22 c0 c1 c2 0b c4 | 20 89 1d 89 1d 41 41 40 |) ".....| ....AA@|
|00001630| 29 53 1e 06 0d 89 1d 89 | 1d 40 29 1e 07 0d 89 1d |)S......|.@).....|
|00001640| 41 40 29 1e 08 0d 89 1d | 41 41 40 29 1e 09 0e 08 |A@).....|AA@)....|
|00001650| 0e 07 53 ca 5f 5c 5c 1e | 0b 0e 07 cc 56 83 6e 00 |..S._\\.|....V.n.|
|00001660| 0e 0b 0e 07 cd 5f ce 5c | 5c cf a5 5a 16 0b 0e 09 |....._.\|\..Z....|
|00001670| 89 1e 09 cd a6 d0 55 85 | 65 00 0e 09 d1 a6 d0 55 |......U.|e......U|
|00001680| 3f 86 65 00 0e 09 d2 a6 | d0 55 29 83 6e 00 0e 0b |?.e.....|.U).n...|
|00001690| 54 16 0b 0e 0b 2d 0e 06 | d3 5f 5c 5c 0e 06 cd a5 |T....-..|._\\....|
|000016a0| 5c 5c 0e 06 d1 a5 5b 5c | 5c 0e 06 d2 a5 5c 5c 2a |\\....[\|\....\\*|
|000016b0| d4 5c 5c 5c 22 21 21 88 | 0e 15 86 94 00 d6 20 87 |.\\\"!!.|...... .|
|000016c0| 22 20 5b 63 61 6c 65 6e | 64 61 72 2d 67 6f 74 6f |" [calen|dar-goto|
|000016d0| 2d 64 61 74 65 20 63 61 | 6c 65 6e 64 61 72 2d 67 |-date ca|lendar-g|
|000016e0| 72 65 67 6f 72 69 61 6e | 2d 66 72 6f 6d 2d 61 62 |regorian|-from-ab|
|000016f0| 73 6f 6c 75 74 65 20 63 | 61 6c 65 6e 64 61 72 2d |solute c|alendar-|
|00001700| 6d 61 79 61 6e 2d 74 7a | 6f 6c 6b 69 6e 2d 6f 6e |mayan-tz|olkin-on|
|00001710| 2d 6f 72 2d 62 65 66 6f | 72 65 20 74 7a 6f 6c 6b |-or-befo|re tzolk|
|00001720| 69 6e 2d 64 61 74 65 20 | 63 61 6c 65 6e 64 61 72 |in-date |calendar|
|00001730| 2d 63 75 72 73 6f 72 2d | 74 6f 2d 64 61 74 65 20 |-cursor-|to-date |
|00001740| 64 61 74 65 20 70 72 69 | 6f 72 2d 79 65 61 72 73 |date pri|or-years|
|00001750| 20 6d 6f 6e 74 68 20 64 | 61 79 20 79 65 61 72 20 | month d|ay year |
|00001760| 33 31 20 64 61 79 2d 6f | 66 2d 79 65 61 72 20 32 |31 day-o|f-year 2|
|00001770| 20 34 20 32 33 20 31 30 | 20 30 20 31 30 30 20 34 | 4 23 10| 0 100 4|
|00001780| 30 30 20 33 36 35 20 32 | 36 30 20 6e 6f 65 63 68 |00 365 2|60 noech|
|00001790| 6f 20 63 61 6c 65 6e 64 | 61 72 2d 70 72 69 6e 74 |o calend|ar-print|
|000017a0| 2d 6d 61 79 61 6e 2d 64 | 61 74 65 5d 20 31 30 20 |-mayan-d|ate] 10 |
|000017b0| 28 23 24 20 2e 20 35 35 | 30 38 29 20 28 6c 69 73 |(#$ . 55|08) (lis|
|000017c0| 74 20 28 63 61 6c 65 6e | 64 61 72 2d 72 65 61 64 |t (calen|dar-read|
|000017d0| 2d 6d 61 79 61 6e 2d 74 | 7a 6f 6c 6b 69 6e 2d 64 |-mayan-t|zolkin-d|
|000017e0| 61 74 65 29 29 5d 29 0a | 23 40 39 30 20 4d 6f 76 |ate))]).|#@90 Mov|
|000017f0| 65 20 63 75 72 73 6f 72 | 20 74 6f 20 70 72 65 76 |e cursor| to prev|
|00001800| 69 6f 75 73 20 69 6e 73 | 74 61 6e 63 65 20 6f 66 |ious ins|tance of|
|00001810| 20 4d 61 79 61 6e 20 54 | 5a 4f 4c 4b 49 4e 2d 44 | Mayan T|ZOLKIN-D|
|00001820| 41 54 45 2e 20 0a 45 63 | 68 6f 20 4d 61 79 61 6e |ATE. .Ec|ho Mayan|
|00001830| 20 64 61 74 65 20 69 66 | 20 4e 4f 45 43 48 4f 20 | date if| NOECHO |
|00001840| 69 73 20 74 2e 1f 0a 28 | 64 65 66 61 6c 69 61 73 |is t...(|defalias|
|00001850| 20 27 63 61 6c 65 6e 64 | 61 72 2d 70 72 65 76 69 | 'calend|ar-previ|
|00001860| 6f 75 73 2d 74 7a 6f 6c | 6b 69 6e 2d 64 61 74 65 |ous-tzol|kin-date|
|00001870| 20 23 5b 28 74 7a 6f 6c | 6b 69 6e 2d 64 61 74 65 | #[(tzol|kin-date|
|00001880| 20 26 6f 70 74 69 6f 6e | 61 6c 20 6e 6f 65 63 68 | &option|al noech|
|00001890| 6f 29 20 22 c0 c1 c2 0b | c4 20 89 1d 89 1d 41 41 |o) "....|. ....AA|
|000018a0| 40 29 53 1e 06 0d 89 1d | 89 1d 40 29 1e 07 0d 89 |@)S.....|..@)....|
|000018b0| 1d 41 40 29 1e 08 0d 89 | 1d 41 41 40 29 1e 09 0e |.A@)....|.AA@)...|
|000018c0| 08 0e 07 53 ca 5f 5c 5c | 1e 0b 0e 07 cc 56 83 6e |...S._\\|.....V.n|
|000018d0| 00 0e 0b 0e 07 cd 5f ce | 5c 5c cf a5 5a 16 0b 0e |......_.|\\..Z...|
|000018e0| 09 89 1e 09 cd a6 d0 55 | 85 65 00 0e 09 d1 a6 d0 |.......U|.e......|
|000018f0| 55 3f 86 65 00 0e 09 d2 | a6 d0 55 29 83 6e 00 0e |U?.e....|..U).n..|
|00001900| 0b 54 16 0b 0e 0b 2d 0e | 06 d3 5f 5c 5c 0e 06 cd |.T....-.|.._\\...|
|00001910| a5 5c 5c 0e 06 d1 a5 5b | 5c 5c 0e 06 d2 a5 5c 5c |.\\....[|\\....\\|
|00001920| 2a 53 5c 22 21 21 88 0e | 14 86 93 00 d5 20 87 22 |*S\"!!..|..... ."|
|00001930| 20 5b 63 61 6c 65 6e 64 | 61 72 2d 67 6f 74 6f 2d | [calend|ar-goto-|
|00001940| 64 61 74 65 20 63 61 6c | 65 6e 64 61 72 2d 67 72 |date cal|endar-gr|
|00001950| 65 67 6f 72 69 61 6e 2d | 66 72 6f 6d 2d 61 62 73 |egorian-|from-abs|
|00001960| 6f 6c 75 74 65 20 63 61 | 6c 65 6e 64 61 72 2d 6d |olute ca|lendar-m|
|00001970| 61 79 61 6e 2d 74 7a 6f | 6c 6b 69 6e 2d 6f 6e 2d |ayan-tzo|lkin-on-|
|00001980| 6f 72 2d 62 65 66 6f 72 | 65 20 74 7a 6f 6c 6b 69 |or-befor|e tzolki|
|00001990| 6e 2d 64 61 74 65 20 63 | 61 6c 65 6e 64 61 72 2d |n-date c|alendar-|
|000019a0| 63 75 72 73 6f 72 2d 74 | 6f 2d 64 61 74 65 20 64 |cursor-t|o-date d|
|000019b0| 61 74 65 20 70 72 69 6f | 72 2d 79 65 61 72 73 20 |ate prio|r-years |
|000019c0| 6d 6f 6e 74 68 20 64 61 | 79 20 79 65 61 72 20 33 |month da|y year 3|
|000019d0| 31 20 64 61 79 2d 6f 66 | 2d 79 65 61 72 20 32 20 |1 day-of|-year 2 |
|000019e0| 34 20 32 33 20 31 30 20 | 30 20 31 30 30 20 34 30 |4 23 10 |0 100 40|
|000019f0| 30 20 33 36 35 20 6e 6f | 65 63 68 6f 20 63 61 6c |0 365 no|echo cal|
|00001a00| 65 6e 64 61 72 2d 70 72 | 69 6e 74 2d 6d 61 79 61 |endar-pr|int-maya|
|00001a10| 6e 2d 64 61 74 65 5d 20 | 31 30 20 28 23 24 20 2e |n-date] |10 (#$ .|
|00001a20| 20 36 31 32 35 29 20 28 | 6c 69 73 74 20 28 63 61 | 6125) (|list (ca|
|00001a30| 6c 65 6e 64 61 72 2d 72 | 65 61 64 2d 6d 61 79 61 |lendar-r|ead-maya|
|00001a40| 6e 2d 74 7a 6f 6c 6b 69 | 6e 2d 64 61 74 65 29 29 |n-tzolki|n-date))|
|00001a50| 5d 29 0a 23 40 37 32 20 | 43 6f 6e 76 65 72 74 20 |]).#@72 |Convert |
|00001a60| 4d 61 79 61 6e 20 74 7a | 6f 6c 6b 69 6e 20 64 61 |Mayan tz|olkin da|
|00001a70| 74 65 20 28 61 20 70 61 | 69 72 29 20 69 6e 74 6f |te (a pa|ir) into|
|00001a80| 20 69 74 73 20 74 72 61 | 64 69 74 69 6f 6e 61 6c | its tra|ditional|
|00001a90| 20 77 72 69 74 74 65 6e | 20 66 6f 72 6d 2e 1f 0a | written| form...|
|00001aa0| 28 64 65 66 61 6c 69 61 | 73 20 27 63 61 6c 65 6e |(defalia|s 'calen|
|00001ab0| 64 61 72 2d 6d 61 79 61 | 6e 2d 74 7a 6f 6c 6b 69 |dar-maya|n-tzolki|
|00001ac0| 6e 2d 74 6f 2d 73 74 72 | 69 6e 67 20 23 5b 28 74 |n-to-str|ing #[(t|
|00001ad0| 7a 6f 6c 6b 69 6e 29 20 | 22 c0 c1 5c 6e 40 0b 5c |zolkin) |"..\n@.\|
|00001ae0| 6e 41 53 48 23 87 22 20 | 5b 66 6f 72 6d 61 74 20 |nASH#." |[format |
|00001af0| 22 25 64 20 25 73 22 20 | 74 7a 6f 6c 6b 69 6e 20 |"%d %s" |tzolkin |
|00001b00| 63 61 6c 65 6e 64 61 72 | 2d 6d 61 79 61 6e 2d 74 |calendar|-mayan-t|
|00001b10| 7a 6f 6c 6b 69 6e 2d 6e | 61 6d 65 73 2d 61 72 72 |zolkin-n|ames-arr|
|00001b20| 61 79 5d 20 35 20 28 23 | 24 20 2e 20 36 37 34 34 |ay] 5 (#|$ . 6744|
|00001b30| 29 5d 29 0a 23 40 31 35 | 35 20 41 62 73 6f 6c 75 |)]).#@15|5 Absolu|
|00001b40| 74 65 20 64 61 74 65 20 | 74 68 61 74 20 69 73 20 |te date |that is |
|00001b50| 4d 61 79 61 6e 20 54 5a | 4f 4c 4b 49 4e 2d 44 41 |Mayan TZ|OLKIN-DA|
|00001b60| 54 45 20 61 6e 64 20 48 | 41 41 42 2d 44 41 54 45 |TE and H|AAB-DATE|
|00001b70| 2e 0a 4c 61 74 65 73 74 | 20 73 75 63 68 20 64 61 |..Latest| such da|
|00001b80| 74 65 20 6f 6e 20 6f 72 | 20 62 65 66 6f 72 65 20 |te on or| before |
|00001b90| 44 41 54 45 2e 0a 52 65 | 74 75 72 6e 73 20 6e 69 |DATE..Re|turns ni|
|00001ba0| 6c 20 69 66 20 73 75 63 | 68 20 61 20 74 7a 6f 6c |l if suc|h a tzol|
|00001bb0| 6b 69 6e 2d 68 61 61 62 | 20 63 6f 6d 62 69 6e 61 |kin-haab| combina|
|00001bc0| 74 69 6f 6e 20 69 73 20 | 69 6d 70 6f 73 73 69 62 |tion is |impossib|
|00001bd0| 6c 65 2e 1f 0a 28 64 65 | 66 61 6c 69 61 73 20 27 |le...(de|falias '|
|00001be0| 63 61 6c 65 6e 64 61 72 | 2d 6d 61 79 61 6e 2d 74 |calendar|-mayan-t|
|00001bf0| 7a 6f 6c 6b 69 6e 2d 68 | 61 61 62 2d 6f 6e 2d 6f |zolkin-h|aab-on-o|
|00001c00| 72 2d 62 65 66 6f 72 65 | 20 23 5b 28 74 7a 6f 6c |r-before| #[(tzol|
|00001c10| 6b 69 6e 2d 64 61 74 65 | 20 68 61 61 62 2d 64 61 |kin-date| haab-da|
|00001c20| 74 65 20 64 61 74 65 29 | 20 22 c0 c1 c2 21 0b 5c |te date)| "...!.\|
|00001c30| 22 1c c5 c6 c2 21 0e 07 | 5c 22 89 1e 08 5c 66 5a |"....!..|\"...\fZ|
|00001c40| 89 1e 09 ca a6 c2 55 85 | 2c 00 0e 0b cc 0e 0b 5c |......U.|,......\|
|00001c50| 66 0e 09 cd 5f 5c 5c 5a | ce 5c 22 5a 2b 87 22 20 |f..._\\Z|.\"Z+." |
|00001c60| 5b 63 61 6c 65 6e 64 61 | 72 2d 6d 61 79 61 6e 2d |[calenda|r-mayan-|
|00001c70| 68 61 61 62 2d 64 69 66 | 66 65 72 65 6e 63 65 20 |haab-dif|ference |
|00001c80| 63 61 6c 65 6e 64 61 72 | 2d 6d 61 79 61 6e 2d 68 |calendar|-mayan-h|
|00001c90| 61 61 62 2d 66 72 6f 6d | 2d 61 62 73 6f 6c 75 74 |aab-from|-absolut|
|00001ca0| 65 20 30 20 68 61 61 62 | 2d 64 61 74 65 20 68 61 |e 0 haab|-date ha|
|00001cb0| 61 62 2d 64 69 66 66 65 | 72 65 6e 63 65 20 63 61 |ab-diffe|rence ca|
|00001cc0| 6c 65 6e 64 61 72 2d 6d | 61 79 61 6e 2d 74 7a 6f |lendar-m|ayan-tzo|
|00001cd0| 6c 6b 69 6e 2d 64 69 66 | 66 65 72 65 6e 63 65 20 |lkin-dif|ference |
|00001ce0| 63 61 6c 65 6e 64 61 72 | 2d 6d 61 79 61 6e 2d 74 |calendar|-mayan-t|
|00001cf0| 7a 6f 6c 6b 69 6e 2d 66 | 72 6f 6d 2d 61 62 73 6f |zolkin-f|rom-abso|
|00001d00| 6c 75 74 65 20 74 7a 6f | 6c 6b 69 6e 2d 64 61 74 |lute tzo|lkin-dat|
|00001d10| 65 20 74 7a 6f 6c 6b 69 | 6e 2d 64 69 66 66 65 72 |e tzolki|n-differ|
|00001d20| 65 6e 63 65 20 64 69 66 | 66 65 72 65 6e 63 65 20 |ence dif|ference |
|00001d30| 35 20 64 61 74 65 20 6d | 6f 64 20 33 36 35 20 31 |5 date m|od 365 1|
|00001d40| 38 39 38 30 5d 20 37 20 | 28 23 24 20 2e 20 36 39 |8980] 7 |(#$ . 69|
|00001d50| 37 30 29 5d 29 0a 23 40 | 33 30 20 50 72 6f 6d 70 |70)]).#@|30 Promp|
|00001d60| 74 20 66 6f 72 20 61 20 | 4d 61 79 61 6e 20 68 61 |t for a |Mayan ha|
|00001d70| 61 62 20 64 61 74 65 1f | 0a 28 64 65 66 61 6c 69 |ab date.|.(defali|
|00001d80| 61 73 20 27 63 61 6c 65 | 6e 64 61 72 2d 72 65 61 |as 'cale|ndar-rea|
|00001d90| 64 2d 6d 61 79 61 6e 2d | 68 61 61 62 2d 64 61 74 |d-mayan-|haab-dat|
|00001da0| 65 20 23 5b 6e 69 6c 20 | 22 c0 19 c2 c3 c4 5c 22 |e #[nil |".....\"|
|00001db0| 1d c6 0e 07 0d c8 57 85 | 11 00 c9 5c 22 1e 5c 6e |......W.|...\".\n|
|00001dc0| cb cc cd ce cf d0 0e 5c | 6e 5c 22 d1 c0 24 21 d2 |.......\|n\"..$!.|
|00001dd0| 0e 5c 6e d3 cc 23 5c 22 | 41 1e 14 0d 0e 14 2c 42 |.\n..#\"|A.....,B|
|00001de0| 87 22 20 5b 74 20 63 6f | 6d 70 6c 65 74 69 6f 6e |." [t co|mpletion|
|00001df0| 2d 69 67 6e 6f 72 65 2d | 63 61 73 65 20 63 61 6c |-ignore-|case cal|
|00001e00| 65 6e 64 61 72 2d 72 65 | 61 64 20 22 48 61 61 62 |endar-re|ad "Haab|
|00001e10| 20 6b 69 6e 20 28 30 2d | 31 39 29 3a 20 22 20 28 | kin (0-|19): " (|
|00001e20| 6c 61 6d 62 64 61 20 28 | 78 29 20 28 61 6e 64 20 |lambda (|x) (and |
|00001e30| 28 3e 3d 20 78 20 30 29 | 20 28 3c 20 78 20 32 30 |(>= x 0)| (< x 20|
|00001e40| 29 29 29 20 68 61 61 62 | 2d 64 61 79 20 61 70 70 |))) haab|-day app|
|00001e50| 65 6e 64 20 63 61 6c 65 | 6e 64 61 72 2d 6d 61 79 |end cale|ndar-may|
|00001e60| 61 6e 2d 68 61 61 62 2d | 6d 6f 6e 74 68 2d 6e 61 |an-haab-|month-na|
|00001e70| 6d 65 2d 61 72 72 61 79 | 20 35 20 28 22 55 61 79 |me-array| 5 ("Uay|
|00001e80| 65 62 22 29 20 68 61 61 | 62 2d 6d 6f 6e 74 68 2d |eb") haa|b-month-|
|00001e90| 6c 69 73 74 20 61 73 73 | 6f 63 20 63 61 70 69 74 |list ass|oc capit|
|00001ea0| 61 6c 69 7a 65 20 63 6f | 6d 70 6c 65 74 69 6e 67 |alize co|mpleting|
|00001eb0| 2d 72 65 61 64 20 22 48 | 61 61 62 20 75 69 6e 61 |-read "H|aab uina|
|00001ec0| 6c 3a 20 22 20 6d 61 70 | 63 61 72 20 6c 69 73 74 |l: " map|car list|
|00001ed0| 20 6e 69 6c 20 63 61 6c | 65 6e 64 61 72 2d 6d 61 | nil cal|endar-ma|
|00001ee0| 6b 65 2d 61 6c 69 73 74 | 20 31 20 68 61 61 62 2d |ke-alist| 1 haab-|
|00001ef0| 6d 6f 6e 74 68 5d 20 37 | 20 28 23 24 20 2e 20 37 |month] 7| (#$ . 7|
|00001f00| 35 31 35 29 5d 29 0a 23 | 40 33 33 20 50 72 6f 6d |515)]).#|@33 Prom|
|00001f10| 70 74 20 66 6f 72 20 61 | 20 4d 61 79 61 6e 20 74 |pt for a| Mayan t|
|00001f20| 7a 6f 6c 6b 69 6e 20 64 | 61 74 65 1f 0a 28 64 65 |zolkin d|ate..(de|
|00001f30| 66 61 6c 69 61 73 20 27 | 63 61 6c 65 6e 64 61 72 |falias '|calendar|
|00001f40| 2d 72 65 61 64 2d 6d 61 | 79 61 6e 2d 74 7a 6f 6c |-read-ma|yan-tzol|
|00001f50| 6b 69 6e 2d 64 61 74 65 | 20 23 5b 6e 69 6c 20 22 |kin-date| #[nil "|
|00001f60| c0 19 c2 c3 c4 5c 22 1d | c6 0e 07 c8 5c 22 1e 09 |.....\".|....\"..|
|00001f70| ca cb cc cd ce cf 0e 09 | 5c 22 c8 c0 24 21 d0 0e |........|\"..$!..|
|00001f80| 09 d1 cb 23 5c 22 41 1e | 12 0d 0e 12 2c 42 87 22 |...#\"A.|....,B."|
|00001f90| 20 5b 74 20 63 6f 6d 70 | 6c 65 74 69 6f 6e 2d 69 | [t comp|letion-i|
|00001fa0| 67 6e 6f 72 65 2d 63 61 | 73 65 20 63 61 6c 65 6e |gnore-ca|se calen|
|00001fb0| 64 61 72 2d 72 65 61 64 | 20 22 54 7a 6f 6c 6b 69 |dar-read| "Tzolki|
|00001fc0| 6e 20 6b 69 6e 20 28 31 | 2d 31 33 29 3a 20 22 20 |n kin (1|-13): " |
|00001fd0| 28 6c 61 6d 62 64 61 20 | 28 78 29 20 28 61 6e 64 |(lambda |(x) (and|
|00001fe0| 20 28 3e 20 78 20 30 29 | 20 28 3c 20 78 20 31 34 | (> x 0)| (< x 14|
|00001ff0| 29 29 29 20 74 7a 6f 6c | 6b 69 6e 2d 63 6f 75 6e |))) tzol|kin-coun|
|00002000| 74 20 61 70 70 65 6e 64 | 20 63 61 6c 65 6e 64 61 |t append| calenda|
|00002010| 72 2d 6d 61 79 61 6e 2d | 74 7a 6f 6c 6b 69 6e 2d |r-mayan-|tzolkin-|
|00002020| 6e 61 6d 65 73 2d 61 72 | 72 61 79 20 6e 69 6c 20 |names-ar|ray nil |
|00002030| 74 7a 6f 6c 6b 69 6e 2d | 6e 61 6d 65 2d 6c 69 73 |tzolkin-|name-lis|
|00002040| 74 20 61 73 73 6f 63 20 | 63 61 70 69 74 61 6c 69 |t assoc |capitali|
|00002050| 7a 65 20 63 6f 6d 70 6c | 65 74 69 6e 67 2d 72 65 |ze compl|eting-re|
|00002060| 61 64 20 22 54 7a 6f 6c | 6b 69 6e 20 75 69 6e 61 |ad "Tzol|kin uina|
|00002070| 6c 3a 20 22 20 6d 61 70 | 63 61 72 20 6c 69 73 74 |l: " map|car list|
|00002080| 20 63 61 6c 65 6e 64 61 | 72 2d 6d 61 6b 65 2d 61 | calenda|r-make-a|
|00002090| 6c 69 73 74 20 31 20 74 | 7a 6f 6c 6b 69 6e 2d 6e |list 1 t|zolkin-n|
|000020a0| 61 6d 65 5d 20 37 20 28 | 23 24 20 2e 20 37 39 34 |ame] 7 (|#$ . 794|
|000020b0| 38 29 5d 29 0a 23 40 31 | 30 37 20 4d 6f 76 65 20 |8)]).#@1|07 Move |
|000020c0| 63 75 72 73 6f 72 20 74 | 6f 20 6e 65 78 74 20 69 |cursor t|o next i|
|000020d0| 6e 73 74 61 6e 63 65 20 | 6f 66 20 4d 61 79 61 6e |nstance |of Mayan|
|000020e0| 20 48 41 41 42 2d 44 41 | 54 45 20 54 5a 4f 4c 4b | HAAB-DA|TE TZOLK|
|000020f0| 49 4e 2d 44 41 54 45 20 | 63 6f 6d 62 69 6e 61 74 |IN-DATE |combinat|
|00002100| 69 6f 6e 2e 0a 45 63 68 | 6f 20 4d 61 79 61 6e 20 |ion..Ech|o Mayan |
|00002110| 64 61 74 65 20 69 66 20 | 4e 4f 45 43 48 4f 20 69 |date if |NOECHO i|
|00002120| 73 20 74 2e 1f 0a 28 64 | 65 66 61 6c 69 61 73 20 |s t...(d|efalias |
|00002130| 27 63 61 6c 65 6e 64 61 | 72 2d 6e 65 78 74 2d 63 |'calenda|r-next-c|
|00002140| 61 6c 65 6e 64 61 72 2d | 72 6f 75 6e 64 2d 64 61 |alendar-|round-da|
|00002150| 74 65 20 23 5b 28 74 7a | 6f 6c 6b 69 6e 2d 64 61 |te #[(tz|olkin-da|
|00002160| 74 65 20 68 61 61 62 2d | 64 61 74 65 20 26 6f 70 |te haab-|date &op|
|00002170| 74 69 6f 6e 61 6c 20 6e | 6f 65 63 68 6f 29 20 22 |tional n|oecho) "|
|00002180| c0 09 5c 6e c3 20 89 1c | 89 1c 41 41 40 29 53 1d |..\n. ..|..AA@)S.|
|00002190| 5c 66 89 1c 89 1c 40 29 | 1e 06 5c 66 89 1c 41 40 |\f....@)|..\f..A@|
|000021a0| 29 1e 07 5c 66 89 1c 41 | 41 40 29 1e 08 0e 07 0e |)..\f..A|A@).....|
|000021b0| 06 53 c9 5f 5c 5c 1e 5c | 6e 0e 06 cb 56 83 6c 00 |.S._\\.\|n...V.l.|
|000021c0| 0e 5c 6e 0e 06 cc 5f cd | 5c 5c ce a5 5a 16 5c 6e |.\n..._.|\\..Z.\n|
|000021d0| 0e 08 89 1e 08 cc a6 cf | 55 85 63 00 0e 08 d0 a6 |........|U.c.....|
|000021e0| cf 55 3f 86 63 00 0e 08 | d1 a6 cf 55 29 83 6c 00 |.U?.c...|...U).l.|
|000021f0| 0e 5c 6e 54 16 5c 6e 0e | 5c 6e 2d 0d d2 5f 5c 5c |.\nT.\n.|\n-.._\\|
|00002200| 0d cc a5 5c 5c 0d d0 a5 | 5b 5c 5c 0d d1 a5 5c 5c |...\\...|[\\...\\|
|00002210| 2a d3 5c 5c 23 89 1c 84 | 95 00 d4 d5 d6 09 21 d7 |*.\\#...|......!.|
|00002220| 5c 6e 21 23 82 a2 00 d8 | d9 5c 66 21 21 88 0e 1a |\n!#....|.\f!!...|
|00002230| 86 a2 00 db 20 29 87 22 | 20 5b 63 61 6c 65 6e 64 |.... )."| [calend|
|00002240| 61 72 2d 6d 61 79 61 6e | 2d 74 7a 6f 6c 6b 69 6e |ar-mayan|-tzolkin|
|00002250| 2d 68 61 61 62 2d 6f 6e | 2d 6f 72 2d 62 65 66 6f |-haab-on|-or-befo|
|00002260| 72 65 20 74 7a 6f 6c 6b | 69 6e 2d 64 61 74 65 20 |re tzolk|in-date |
|00002270| 68 61 61 62 2d 64 61 74 | 65 20 63 61 6c 65 6e 64 |haab-dat|e calend|
|00002280| 61 72 2d 63 75 72 73 6f | 72 2d 74 6f 2d 64 61 74 |ar-curso|r-to-dat|
|00002290| 65 20 64 61 74 65 20 70 | 72 69 6f 72 2d 79 65 61 |e date p|rior-yea|
|000022a0| 72 73 20 6d 6f 6e 74 68 | 20 64 61 79 20 79 65 61 |rs month| day yea|
|000022b0| 72 20 33 31 20 64 61 79 | 2d 6f 66 2d 79 65 61 72 |r 31 day|-of-year|
|000022c0| 20 32 20 34 20 32 33 20 | 31 30 20 30 20 31 30 30 | 2 4 23 |10 0 100|
|000022d0| 20 34 30 30 20 33 36 35 | 20 31 38 39 38 30 20 65 | 400 365| 18980 e|
|000022e0| 72 72 6f 72 20 22 25 73 | 2c 20 25 73 20 64 6f 65 |rror "%s|, %s doe|
|000022f0| 73 20 6e 6f 74 20 65 78 | 69 73 74 20 69 6e 20 74 |s not ex|ist in t|
|00002300| 68 65 20 4d 61 79 61 6e | 20 63 61 6c 65 6e 64 61 |he Mayan| calenda|
|00002310| 72 20 72 6f 75 6e 64 22 | 20 63 61 6c 65 6e 64 61 |r round"| calenda|
|00002320| 72 2d 6d 61 79 61 6e 2d | 74 7a 6f 6c 6b 69 6e 2d |r-mayan-|tzolkin-|
|00002330| 74 6f 2d 73 74 72 69 6e | 67 20 63 61 6c 65 6e 64 |to-strin|g calend|
|00002340| 61 72 2d 6d 61 79 61 6e | 2d 68 61 61 62 2d 74 6f |ar-mayan|-haab-to|
|00002350| 2d 73 74 72 69 6e 67 20 | 63 61 6c 65 6e 64 61 72 |-string |calendar|
|00002360| 2d 67 6f 74 6f 2d 64 61 | 74 65 20 63 61 6c 65 6e |-goto-da|te calen|
|00002370| 64 61 72 2d 67 72 65 67 | 6f 72 69 61 6e 2d 66 72 |dar-greg|orian-fr|
|00002380| 6f 6d 2d 61 62 73 6f 6c | 75 74 65 20 6e 6f 65 63 |om-absol|ute noec|
|00002390| 68 6f 20 63 61 6c 65 6e | 64 61 72 2d 70 72 69 6e |ho calen|dar-prin|
|000023a0| 74 2d 6d 61 79 61 6e 2d | 64 61 74 65 5d 20 39 20 |t-mayan-|date] 9 |
|000023b0| 28 23 24 20 2e 20 38 33 | 37 39 29 20 28 6c 69 73 |(#$ . 83|79) (lis|
|000023c0| 74 20 28 63 61 6c 65 6e | 64 61 72 2d 72 65 61 64 |t (calen|dar-read|
|000023d0| 2d 6d 61 79 61 6e 2d 74 | 7a 6f 6c 6b 69 6e 2d 64 |-mayan-t|zolkin-d|
|000023e0| 61 74 65 29 20 28 63 61 | 6c 65 6e 64 61 72 2d 72 |ate) (ca|lendar-r|
|000023f0| 65 61 64 2d 6d 61 79 61 | 6e 2d 68 61 61 62 2d 64 |ead-maya|n-haab-d|
|00002400| 61 74 65 29 29 5d 29 0a | 23 40 31 30 34 20 4d 6f |ate))]).|#@104 Mo|
|00002410| 76 65 20 74 6f 20 70 72 | 65 76 69 6f 75 73 20 69 |ve to pr|evious i|
|00002420| 6e 73 74 61 6e 63 65 20 | 6f 66 20 4d 61 79 61 6e |nstance |of Mayan|
|00002430| 20 54 5a 4f 4c 4b 49 4e | 2d 44 41 54 45 20 48 41 | TZOLKIN|-DATE HA|
|00002440| 41 42 2d 44 41 54 45 20 | 63 6f 6d 62 69 6e 61 74 |AB-DATE |combinat|
|00002450| 69 6f 6e 2e 0a 45 63 68 | 6f 20 4d 61 79 61 6e 20 |ion..Ech|o Mayan |
|00002460| 64 61 74 65 20 69 66 20 | 4e 4f 45 43 48 4f 20 69 |date if |NOECHO i|
|00002470| 73 20 74 2e 1f 0a 28 64 | 65 66 61 6c 69 61 73 20 |s t...(d|efalias |
|00002480| 27 63 61 6c 65 6e 64 61 | 72 2d 70 72 65 76 69 6f |'calenda|r-previo|
|00002490| 75 73 2d 63 61 6c 65 6e | 64 61 72 2d 72 6f 75 6e |us-calen|dar-roun|
|000024a0| 64 2d 64 61 74 65 20 23 | 5b 28 74 7a 6f 6c 6b 69 |d-date #|[(tzolki|
|000024b0| 6e 2d 64 61 74 65 20 68 | 61 61 62 2d 64 61 74 65 |n-date h|aab-date|
|000024c0| 20 26 6f 70 74 69 6f 6e | 61 6c 20 6e 6f 65 63 68 | &option|al noech|
|000024d0| 6f 29 20 22 c0 09 5c 6e | c3 20 89 1c 89 1c 41 41 |o) "..\n|. ....AA|
|000024e0| 40 29 53 1d 5c 66 89 1c | 89 1c 40 29 1e 06 5c 66 |@)S.\f..|..@)..\f|
|000024f0| 89 1c 41 40 29 1e 07 5c | 66 89 1c 41 41 40 29 1e |..A@)..\|f..AA@).|
|00002500| 08 0e 07 0e 06 53 c9 5f | 5c 5c 1e 5c 6e 0e 06 cb |.....S._|\\.\n...|
|00002510| 56 83 6c 00 0e 5c 6e 0e | 06 cc 5f cd 5c 5c ce a5 |V.l..\n.|.._.\\..|
|00002520| 5a 16 5c 6e 0e 08 89 1e | 08 cc a6 cf 55 85 63 00 |Z.\n....|....U.c.|
|00002530| 0e 08 d0 a6 cf 55 3f 86 | 63 00 0e 08 d1 a6 cf 55 |.....U?.|c......U|
|00002540| 29 83 6c 00 0e 5c 6e 54 | 16 5c 6e 0e 5c 6e 2d 0d |).l..\nT|.\n.\n-.|
|00002550| d2 5f 5c 5c 0d cc a5 5c | 5c 0d d0 a5 5b 5c 5c 0d |._\\...\|\...[\\.|
|00002560| d1 a5 5c 5c 2a 53 23 89 | 1c 84 94 00 d3 d4 d5 09 |..\\*S#.|........|
|00002570| 21 d6 5c 6e 21 23 82 a1 | 00 d7 d8 5c 66 21 21 88 |!.\n!#..|...\f!!.|
|00002580| 0e 19 86 a1 00 da 20 29 | 87 22 20 5b 63 61 6c 65 |...... )|." [cale|
|00002590| 6e 64 61 72 2d 6d 61 79 | 61 6e 2d 74 7a 6f 6c 6b |ndar-may|an-tzolk|
|000025a0| 69 6e 2d 68 61 61 62 2d | 6f 6e 2d 6f 72 2d 62 65 |in-haab-|on-or-be|
|000025b0| 66 6f 72 65 20 74 7a 6f | 6c 6b 69 6e 2d 64 61 74 |fore tzo|lkin-dat|
|000025c0| 65 20 68 61 61 62 2d 64 | 61 74 65 20 63 61 6c 65 |e haab-d|ate cale|
|000025d0| 6e 64 61 72 2d 63 75 72 | 73 6f 72 2d 74 6f 2d 64 |ndar-cur|sor-to-d|
|000025e0| 61 74 65 20 64 61 74 65 | 20 70 72 69 6f 72 2d 79 |ate date| prior-y|
|000025f0| 65 61 72 73 20 6d 6f 6e | 74 68 20 64 61 79 20 79 |ears mon|th day y|
|00002600| 65 61 72 20 33 31 20 64 | 61 79 2d 6f 66 2d 79 65 |ear 31 d|ay-of-ye|
|00002610| 61 72 20 32 20 34 20 32 | 33 20 31 30 20 30 20 31 |ar 2 4 2|3 10 0 1|
|00002620| 30 30 20 34 30 30 20 33 | 36 35 20 65 72 72 6f 72 |00 400 3|65 error|
|00002630| 20 22 25 73 2c 20 25 73 | 20 64 6f 65 73 20 6e 6f | "%s, %s| does no|
|00002640| 74 20 65 78 69 73 74 20 | 69 6e 20 74 68 65 20 4d |t exist |in the M|
|00002650| 61 79 61 6e 20 63 61 6c | 65 6e 64 61 72 20 72 6f |ayan cal|endar ro|
|00002660| 75 6e 64 22 20 63 61 6c | 65 6e 64 61 72 2d 6d 61 |und" cal|endar-ma|
|00002670| 79 61 6e 2d 74 7a 6f 6c | 6b 69 6e 2d 74 6f 2d 73 |yan-tzol|kin-to-s|
|00002680| 74 72 69 6e 67 20 63 61 | 6c 65 6e 64 61 72 2d 6d |tring ca|lendar-m|
|00002690| 61 79 61 6e 2d 68 61 61 | 62 2d 74 6f 2d 73 74 72 |ayan-haa|b-to-str|
|000026a0| 69 6e 67 20 63 61 6c 65 | 6e 64 61 72 2d 67 6f 74 |ing cale|ndar-got|
|000026b0| 6f 2d 64 61 74 65 20 63 | 61 6c 65 6e 64 61 72 2d |o-date c|alendar-|
|000026c0| 67 72 65 67 6f 72 69 61 | 6e 2d 66 72 6f 6d 2d 61 |gregoria|n-from-a|
|000026d0| 62 73 6f 6c 75 74 65 20 | 6e 6f 65 63 68 6f 20 63 |bsolute |noecho c|
|000026e0| 61 6c 65 6e 64 61 72 2d | 70 72 69 6e 74 2d 6d 61 |alendar-|print-ma|
|000026f0| 79 61 6e 2d 64 61 74 65 | 5d 20 39 20 28 23 24 20 |yan-date|] 9 (#$ |
|00002700| 2e 20 39 32 33 30 29 20 | 28 6c 69 73 74 20 28 63 |. 9230) |(list (c|
|00002710| 61 6c 65 6e 64 61 72 2d | 72 65 61 64 2d 6d 61 79 |alendar-|read-may|
|00002720| 61 6e 2d 74 7a 6f 6c 6b | 69 6e 2d 64 61 74 65 29 |an-tzolk|in-date)|
|00002730| 20 28 63 61 6c 65 6e 64 | 61 72 2d 72 65 61 64 2d | (calend|ar-read-|
|00002740| 6d 61 79 61 6e 2d 68 61 | 61 62 2d 64 61 74 65 29 |mayan-ha|ab-date)|
|00002750| 29 5d 29 0a 23 40 31 31 | 38 20 43 6f 6d 70 75 74 |)]).#@11|8 Comput|
|00002760| 65 20 74 68 65 20 61 62 | 73 6f 6c 75 74 65 20 64 |e the ab|solute d|
|00002770| 61 74 65 20 63 6f 72 72 | 65 73 70 6f 6e 64 69 6e |ate corr|espondin|
|00002780| 67 20 74 6f 20 74 68 65 | 20 4d 61 79 61 6e 20 4c |g to the| Mayan L|
|00002790| 6f 6e 67 20 43 6f 75 6e | 74 20 43 2e 0a 4c 6f 6e |ong Coun|t C..Lon|
|000027a0| 67 20 63 6f 75 6e 74 20 | 69 73 20 61 20 6c 69 73 |g count |is a lis|
|000027b0| 74 20 28 62 61 6b 74 75 | 6e 20 6b 61 74 75 6e 20 |t (baktu|n katun |
|000027c0| 74 75 6e 20 75 69 6e 61 | 6c 20 6b 69 6e 29 1f 0a |tun uina|l kin)..|
|000027d0| 28 64 65 66 61 6c 69 61 | 73 20 27 63 61 6c 65 6e |(defalia|s 'calen|
|000027e0| 64 61 72 2d 61 62 73 6f | 6c 75 74 65 2d 66 72 6f |dar-abso|lute-fro|
|000027f0| 6d 2d 6d 61 79 61 6e 2d | 6c 6f 6e 67 2d 63 6f 75 |m-mayan-|long-cou|
|00002800| 6e 74 20 23 5b 28 63 29 | 20 22 08 40 c1 5f 08 41 |nt #[(c)| ".@._.A|
|00002810| 40 c2 5f 5c 5c c3 08 38 | c4 5f 5c 5c c5 08 38 c6 |@._\\..8|._\\..8.|
|00002820| 5f 5c 5c c7 08 38 5c 5c | 0e 08 5b 5c 5c 87 22 20 |_\\..8\\|..[\\." |
|00002830| 5b 63 20 31 34 34 30 30 | 30 20 37 32 30 30 20 32 |[c 14400|0 7200 2|
|00002840| 20 33 36 30 20 33 20 32 | 30 20 34 20 63 61 6c 65 | 360 3 2|0 4 cale|
|00002850| 6e 64 61 72 2d 6d 61 79 | 61 6e 2d 64 61 79 73 2d |ndar-may|an-days-|
|00002860| 62 65 66 6f 72 65 2d 61 | 62 73 6f 6c 75 74 65 2d |before-a|bsolute-|
|00002870| 7a 65 72 6f 5d 20 33 20 | 28 23 24 20 2e 20 31 30 |zero] 3 |(#$ . 10|
|00002880| 30 37 34 29 5d 29 0a 23 | 40 38 38 20 53 74 72 69 |074)]).#|@88 Stri|
|00002890| 6e 67 20 6f 66 20 4d 61 | 79 61 6e 20 64 61 74 65 |ng of Ma|yan date|
|000028a0| 20 6f 66 20 47 72 65 67 | 6f 72 69 61 6e 20 44 41 | of Greg|orian DA|
|000028b0| 54 45 2e 0a 44 65 66 61 | 75 6c 74 73 20 74 6f 20 |TE..Defa|ults to |
|000028c0| 74 6f 64 61 79 27 73 20 | 64 61 74 65 20 69 66 20 |today's |date if |
|000028d0| 44 41 54 45 20 69 73 20 | 6e 6f 74 20 67 69 76 65 |DATE is |not give|
|000028e0| 6e 2e 1f 0a 28 64 65 66 | 61 6c 69 61 73 20 27 63 |n...(def|alias 'c|
|000028f0| 61 6c 65 6e 64 61 72 2d | 6d 61 79 61 6e 2d 64 61 |alendar-|mayan-da|
|00002900| 74 65 2d 73 74 72 69 6e | 67 20 23 5b 28 26 6f 70 |te-strin|g #[(&op|
|00002910| 74 69 6f 6e 61 6c 20 64 | 61 74 65 29 20 22 08 86 |tional d|ate) "..|
|00002920| 06 00 c1 20 89 18 89 18 | 41 41 40 29 53 1a 08 89 |... ....|AA@)S...|
|00002930| 18 89 18 40 29 1b 08 89 | 18 41 40 29 1c 08 89 18 |...@)...|.A@)....|
|00002940| 41 41 40 29 1d 5c 66 0b | 53 c6 5f 5c 5c 1e 07 0b |AA@).\f.|S._\\...|
|00002950| c8 56 83 62 00 0e 07 0b | c9 5f ca 5c 5c cb a5 5a |.V.b....|._.\\..Z|
|00002960| 16 07 0d 89 1d c9 a6 cc | 55 85 59 00 0d cd a6 cc |........|U.Y.....|
|00002970| 55 3f 86 59 00 0d ce a6 | cc 55 29 83 62 00 0e 07 |U?.Y....|.U).b...|
|00002980| 54 16 07 0e 07 2d 5c 6e | cf 5f 5c 5c 5c 6e c9 a5 |T....-\n|._\\\n..|
|00002990| 5c 5c 5c 6e cd a5 5b 5c | 5c 5c 6e ce a5 5c 5c 2a |\\\n..[\|\\n..\\*|
|000029a0| 1e 10 d1 0e 10 21 1e 12 | d3 0e 10 21 1e 14 d5 0e |.....!..|...!....|
|000029b0| 10 21 1e 16 d7 d8 d9 0e | 16 21 da 0e 12 21 db 0e |.!......|.!...!..|
|000029c0| 14 21 24 2c 87 22 20 5b | 64 61 74 65 20 63 61 6c |.!$,." [|date cal|
|000029d0| 65 6e 64 61 72 2d 63 75 | 72 72 65 6e 74 2d 64 61 |endar-cu|rrent-da|
|000029e0| 74 65 20 70 72 69 6f 72 | 2d 79 65 61 72 73 20 6d |te prior|-years m|
|000029f0| 6f 6e 74 68 20 64 61 79 | 20 79 65 61 72 20 33 31 |onth day| year 31|
|00002a00| 20 64 61 79 2d 6f 66 2d | 79 65 61 72 20 32 20 34 | day-of-|year 2 4|
|00002a10| 20 32 33 20 31 30 20 30 | 20 31 30 30 20 34 30 30 | 23 10 0| 100 400|
|00002a20| 20 33 36 35 20 64 20 63 | 61 6c 65 6e 64 61 72 2d | 365 d c|alendar-|
|00002a30| 6d 61 79 61 6e 2d 74 7a | 6f 6c 6b 69 6e 2d 66 72 |mayan-tz|olkin-fr|
|00002a40| 6f 6d 2d 61 62 73 6f 6c | 75 74 65 20 74 7a 6f 6c |om-absol|ute tzol|
|00002a50| 6b 69 6e 20 63 61 6c 65 | 6e 64 61 72 2d 6d 61 79 |kin cale|ndar-may|
|00002a60| 61 6e 2d 68 61 61 62 2d | 66 72 6f 6d 2d 61 62 73 |an-haab-|from-abs|
|00002a70| 6f 6c 75 74 65 20 68 61 | 61 62 20 63 61 6c 65 6e |olute ha|ab calen|
|00002a80| 64 61 72 2d 6d 61 79 61 | 6e 2d 6c 6f 6e 67 2d 63 |dar-maya|n-long-c|
|00002a90| 6f 75 6e 74 2d 66 72 6f | 6d 2d 61 62 73 6f 6c 75 |ount-fro|m-absolu|
|00002aa0| 74 65 20 6c 6f 6e 67 2d | 63 6f 75 6e 74 20 66 6f |te long-|count fo|
|00002ab0| 72 6d 61 74 20 22 4c 6f | 6e 67 20 63 6f 75 6e 74 |rmat "Lo|ng count|
|00002ac0| 20 3d 20 25 73 3b 20 74 | 7a 6f 6c 6b 69 6e 20 3d | = %s; t|zolkin =|
|00002ad0| 20 25 73 3b 20 68 61 61 | 62 20 3d 20 25 73 22 20 | %s; haa|b = %s" |
|00002ae0| 63 61 6c 65 6e 64 61 72 | 2d 6d 61 79 61 6e 2d 6c |calendar|-mayan-l|
|00002af0| 6f 6e 67 2d 63 6f 75 6e | 74 2d 74 6f 2d 73 74 72 |ong-coun|t-to-str|
|00002b00| 69 6e 67 20 63 61 6c 65 | 6e 64 61 72 2d 6d 61 79 |ing cale|ndar-may|
|00002b10| 61 6e 2d 74 7a 6f 6c 6b | 69 6e 2d 74 6f 2d 73 74 |an-tzolk|in-to-st|
|00002b20| 72 69 6e 67 20 63 61 6c | 65 6e 64 61 72 2d 6d 61 |ring cal|endar-ma|
|00002b30| 79 61 6e 2d 68 61 61 62 | 2d 74 6f 2d 73 74 72 69 |yan-haab|-to-stri|
|00002b40| 6e 67 5d 20 37 20 28 23 | 24 20 2e 20 31 30 33 38 |ng] 7 (#|$ . 1038|
|00002b50| 30 29 5d 29 0a 23 40 36 | 37 20 53 68 6f 77 20 74 |0)]).#@6|7 Show t|
|00002b60| 68 65 20 4d 61 79 61 6e | 20 6c 6f 6e 67 20 63 6f |he Mayan| long co|
|00002b70| 75 6e 74 2c 20 74 7a 6f | 6c 6b 69 6e 2c 20 61 6e |unt, tzo|lkin, an|
|00002b80| 64 20 68 61 61 62 20 65 | 71 75 69 76 61 6c 65 6e |d haab e|quivalen|
|00002b90| 74 73 20 6f 66 20 64 61 | 74 65 2e 1f 0a 28 64 65 |ts of da|te...(de|
|00002ba0| 66 61 6c 69 61 73 20 27 | 63 61 6c 65 6e 64 61 72 |falias '|calendar|
|00002bb0| 2d 70 72 69 6e 74 2d 6d | 61 79 61 6e 2d 64 61 74 |-print-m|ayan-dat|
|00002bc0| 65 20 23 5b 6e 69 6c 20 | 22 c0 c1 c2 c3 c4 21 21 |e #[nil |".....!!|
|00002bd0| 5c 22 87 22 20 5b 6d 65 | 73 73 61 67 65 20 22 4d |\"." [me|ssage "M|
|00002be0| 61 79 61 6e 20 64 61 74 | 65 3a 20 25 73 22 20 63 |ayan dat|e: %s" c|
|00002bf0| 61 6c 65 6e 64 61 72 2d | 6d 61 79 61 6e 2d 64 61 |alendar-|mayan-da|
|00002c00| 74 65 2d 73 74 72 69 6e | 67 20 63 61 6c 65 6e 64 |te-strin|g calend|
|00002c10| 61 72 2d 63 75 72 73 6f | 72 2d 74 6f 2d 64 61 74 |ar-curso|r-to-dat|
|00002c20| 65 20 74 5d 20 35 20 28 | 23 24 20 2e 20 31 31 30 |e t] 5 (|#$ . 110|
|00002c30| 39 38 29 20 6e 69 6c 5d | 29 0a 23 40 37 36 20 4d |98) nil]|).#@76 M|
|00002c40| 6f 76 65 20 63 75 72 73 | 6f 72 20 74 6f 20 4d 61 |ove curs|or to Ma|
|00002c50| 79 61 6e 20 6c 6f 6e 67 | 20 63 6f 75 6e 74 20 44 |yan long| count D|
|00002c60| 41 54 45 2e 20 20 45 63 | 68 6f 20 4d 61 79 61 6e |ATE. Ec|ho Mayan|
|00002c70| 20 64 61 74 65 20 75 6e | 6c 65 73 73 20 4e 4f 45 | date un|less NOE|
|00002c80| 43 48 4f 20 69 73 20 74 | 2e 1f 0a 28 64 65 66 61 |CHO is t|...(defa|
|00002c90| 6c 69 61 73 20 27 63 61 | 6c 65 6e 64 61 72 2d 67 |lias 'ca|lendar-g|
|00002ca0| 6f 74 6f 2d 6d 61 79 61 | 6e 2d 6c 6f 6e 67 2d 63 |oto-maya|n-long-c|
|00002cb0| 6f 75 6e 74 2d 64 61 74 | 65 20 23 5b 28 64 61 74 |ount-dat|e #[(dat|
|00002cc0| 65 20 26 6f 70 74 69 6f | 6e 61 6c 20 6e 6f 65 63 |e &optio|nal noec|
|00002cd0| 68 6f 29 20 22 c0 c1 c2 | 0b 21 21 21 88 5c 66 86 |ho) "...|.!!!.\f.|
|00002ce0| 0e 00 c5 20 87 22 20 5b | 63 61 6c 65 6e 64 61 72 |... ." [|calendar|
|00002cf0| 2d 67 6f 74 6f 2d 64 61 | 74 65 20 63 61 6c 65 6e |-goto-da|te calen|
|00002d00| 64 61 72 2d 67 72 65 67 | 6f 72 69 61 6e 2d 66 72 |dar-greg|orian-fr|
|00002d10| 6f 6d 2d 61 62 73 6f 6c | 75 74 65 20 63 61 6c 65 |om-absol|ute cale|
|00002d20| 6e 64 61 72 2d 61 62 73 | 6f 6c 75 74 65 2d 66 72 |ndar-abs|olute-fr|
|00002d30| 6f 6d 2d 6d 61 79 61 6e | 2d 6c 6f 6e 67 2d 63 6f |om-mayan|-long-co|
|00002d40| 75 6e 74 20 64 61 74 65 | 20 6e 6f 65 63 68 6f 20 |unt date| noecho |
|00002d50| 63 61 6c 65 6e 64 61 72 | 2d 70 72 69 6e 74 2d 6d |calendar|-print-m|
|00002d60| 61 79 61 6e 2d 64 61 74 | 65 5d 20 34 20 28 23 24 |ayan-dat|e] 4 (#$|
|00002d70| 20 2e 20 31 31 33 32 37 | 29 20 28 6c 65 74 20 28 | . 11327|) (let (|
|00002d80| 6c 63 29 20 28 77 68 69 | 6c 65 20 28 6e 6f 74 20 |lc) (whi|le (not |
|00002d90| 6c 63 29 20 28 6c 65 74 | 20 28 28 64 61 74 75 6d |lc) (let| ((datum|
|00002da0| 20 28 63 61 6c 65 6e 64 | 61 72 2d 73 74 72 69 6e | (calend|ar-strin|
|00002db0| 67 2d 74 6f 2d 6d 61 79 | 61 6e 2d 6c 6f 6e 67 2d |g-to-may|an-long-|
|00002dc0| 63 6f 75 6e 74 20 28 72 | 65 61 64 2d 73 74 72 69 |count (r|ead-stri|
|00002dd0| 6e 67 20 22 4d 61 79 61 | 6e 20 6c 6f 6e 67 20 63 |ng "Maya|n long c|
|00002de0| 6f 75 6e 74 20 28 62 61 | 6b 74 75 6e 2e 6b 61 74 |ount (ba|ktun.kat|
|00002df0| 75 6e 2e 74 75 6e 2e 75 | 69 6e 61 6c 2e 6b 69 6e |un.tun.u|inal.kin|
|00002e00| 29 3a 20 22 20 28 63 61 | 6c 65 6e 64 61 72 2d 6d |): " (ca|lendar-m|
|00002e10| 61 79 61 6e 2d 6c 6f 6e | 67 2d 63 6f 75 6e 74 2d |ayan-lon|g-count-|
|00002e20| 74 6f 2d 73 74 72 69 6e | 67 20 28 63 61 6c 65 6e |to-strin|g (calen|
|00002e30| 64 61 72 2d 6d 61 79 61 | 6e 2d 6c 6f 6e 67 2d 63 |dar-maya|n-long-c|
|00002e40| 6f 75 6e 74 2d 66 72 6f | 6d 2d 61 62 73 6f 6c 75 |ount-fro|m-absolu|
|00002e50| 74 65 20 28 63 61 6c 65 | 6e 64 61 72 2d 61 62 73 |te (cale|ndar-abs|
|00002e60| 6f 6c 75 74 65 2d 66 72 | 6f 6d 2d 67 72 65 67 6f |olute-fr|om-grego|
|00002e70| 72 69 61 6e 20 28 63 61 | 6c 65 6e 64 61 72 2d 63 |rian (ca|lendar-c|
|00002e80| 75 72 72 65 6e 74 2d 64 | 61 74 65 29 29 29 29 29 |urrent-d|ate)))))|
|00002e90| 29 29 29 20 28 69 66 20 | 28 63 61 6c 65 6e 64 61 |))) (if |(calenda|
|00002ea0| 72 2d 6d 61 79 61 6e 2d | 6c 6f 6e 67 2d 63 6f 75 |r-mayan-|long-cou|
|00002eb0| 6e 74 2d 63 6f 6d 6d 6f | 6e 2d 65 72 61 20 64 61 |nt-commo|n-era da|
|00002ec0| 74 75 6d 29 20 28 73 65 | 74 71 20 6c 63 20 64 61 |tum) (se|tq lc da|
|00002ed0| 74 75 6d 29 29 29 29 20 | 28 6c 69 73 74 20 6c 63 |tum)))) |(list lc|
|00002ee0| 29 29 5d 29 0a 23 40 35 | 32 20 54 20 69 66 20 6c |))]).#@5|2 T if l|
|00002ef0| 6f 6e 67 20 63 6f 75 6e | 74 20 72 65 70 72 65 73 |ong coun|t repres|
|00002f00| 65 6e 74 73 20 64 61 74 | 65 20 69 6e 20 74 68 65 |ents dat|e in the|
|00002f10| 20 43 6f 6d 6d 6f 6e 20 | 45 72 61 2e 1f 0a 28 64 | Common |Era...(d|
|00002f20| 65 66 61 6c 69 61 73 20 | 27 63 61 6c 65 6e 64 61 |efalias |'calenda|
|00002f30| 72 2d 6d 61 79 61 6e 2d | 6c 6f 6e 67 2d 63 6f 75 |r-mayan-|long-cou|
|00002f40| 6e 74 2d 63 6f 6d 6d 6f | 6e 2d 65 72 61 20 23 5b |nt-commo|n-era #[|
|00002f50| 28 6c 63 29 20 22 c0 c1 | 21 89 1a 83 1a 00 0b 40 |(lc) "..|!......@|
|00002f60| 5c 6e 40 55 83 1a 00 0b | 41 13 5c 6e 41 89 12 84 |\n@U....|A.\nA...|
|00002f70| 08 00 0b 3f 86 24 00 0b | 40 5c 6e 40 56 29 87 22 |...?.$..|@\n@V)."|
|00002f80| 20 5b 63 61 6c 65 6e 64 | 61 72 2d 6d 61 79 61 6e | [calend|ar-mayan|
|00002f90| 2d 6c 6f 6e 67 2d 63 6f | 75 6e 74 2d 66 72 6f 6d |-long-co|unt-from|
|00002fa0| 2d 61 62 73 6f 6c 75 74 | 65 20 31 20 62 61 73 65 |-absolut|e 1 base|
|00002fb0| 20 6c 63 5d 20 33 20 28 | 23 24 20 2e 20 31 32 30 | lc] 3 (|#$ . 120|
|00002fc0| 31 30 29 5d 29 0a 23 40 | 37 30 20 53 68 6f 77 20 |10)]).#@|70 Show |
|00002fd0| 74 68 65 20 4d 61 79 61 | 6e 20 6c 6f 6e 67 20 63 |the Maya|n long c|
|00002fe0| 6f 75 6e 74 2c 20 68 61 | 61 62 2c 20 61 6e 64 20 |ount, ha|ab, and |
|00002ff0| 74 7a 6f 6c 6b 69 6e 20 | 64 61 74 65 73 20 61 73 |tzolkin |dates as|
|00003000| 20 61 20 64 69 61 72 79 | 20 65 6e 74 72 79 2e 1f | a diary| entry..|
|00003010| 0a 28 64 65 66 61 6c 69 | 61 73 20 27 64 69 61 72 |.(defali|as 'diar|
|00003020| 79 2d 6d 61 79 61 6e 2d | 64 61 74 65 20 23 5b 6e |y-mayan-|date #[n|
|00003030| 69 6c 20 22 c0 c1 c2 0b | 21 5c 22 87 22 20 5b 66 |il "....|!\"." [f|
|00003040| 6f 72 6d 61 74 20 22 4d | 61 79 61 6e 20 64 61 74 |ormat "M|ayan dat|
|00003050| 65 3a 20 25 73 22 20 63 | 61 6c 65 6e 64 61 72 2d |e: %s" c|alendar-|
|00003060| 6d 61 79 61 6e 2d 64 61 | 74 65 2d 73 74 72 69 6e |mayan-da|te-strin|
|00003070| 67 20 64 61 74 65 5d 20 | 34 20 28 23 24 20 2e 20 |g date] |4 (#$ . |
|00003080| 31 32 32 33 35 29 5d 29 | 0a 28 70 72 6f 76 69 64 |12235)])|.(provid|
|00003090| 65 20 28 71 75 6f 74 65 | 20 63 61 6c 2d 6d 61 79 |e (quote| cal-may|
|000030a0| 61 6e 29 29 0a | |an)). | |
+--------+-------------------------+-------------------------+--------+--------+